Lines Matching refs:keyCode
128 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
132 if (currentShip.onKeyDown(keyCode, event)) { in onKeyDown()
138 return super.onKeyDown(keyCode, event); in onKeyDown()
142 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
146 if (currentShip.onKeyUp(keyCode, event)) { in onKeyUp()
152 return super.onKeyUp(keyCode, event); in onKeyUp()
491 private static boolean isFireKey(int keyCode) { in isFireKey() argument
492 return KeyEvent.isGamepadButton(keyCode) in isFireKey()
493 || keyCode == KeyEvent.KEYCODE_DPAD_CENTER in isFireKey()
494 || keyCode == KeyEvent.KEYCODE_SPACE; in isFireKey()
695 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument
699 switch (keyCode) { in onKeyUp()
721 if (isFireKey(keyCode)) { in onKeyUp()
745 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument
750 switch (keyCode) { in onKeyDown()
772 if (isFireKey(keyCode)) { in onKeyDown()