Lines Matching refs:keyCode
36 * Class to trigger TouchEvents, keycode can be TouchInput.ALL(=0) or TouchInput.KEYCODE_*
42 private final int keyCode;
46 * @param keyCode can be zero to get all events or TouchInput.KEYCODE_*
48 public TouchTrigger(int keyCode) {
50 this.keyCode = keyCode;
55 if (keyCode != 0)
58 return "TouchInput KeyCode " + keyCode;
61 public static int touchHash(int keyCode){
62 assert keyCode >= 0 && keyCode <= 255;
63 return 0xfedcba98 + keyCode;
67 return touchHash(keyCode);
71 return keyCode;