Lines Matching refs:keyCode
81 public boolean onKey(View view, int keyCode, KeyEvent keyEvent) {
84 if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT ||
85 keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) {
86 boolean eat = mHandler.eatHorizontalMove(keyCode == KeyEvent.KEYCODE_DPAD_LEFT);
91 if (action == KeyEvent.ACTION_MULTIPLE && keyCode == KeyEvent.KEYCODE_UNKNOWN) {
95 //Calculator.log("KEY " + keyCode + "; " + action);
104 if (keyCode != KeyEvent.KEYCODE_DPAD_CENTER &&
105 keyCode != KeyEvent.KEYCODE_DPAD_UP &&
106 keyCode != KeyEvent.KEYCODE_DPAD_DOWN &&
107 keyCode != KeyEvent.KEYCODE_ENTER) {
119 switch (keyCode) {