/external/jmonkeyengine/engine/src/core/com/jme3/input/controls/ |
D | TouchTrigger.java | 42 private final int keyCode; field in TouchTrigger 48 public TouchTrigger(int keyCode) { in TouchTrigger() argument 50 this.keyCode = keyCode; in TouchTrigger() 55 if (keyCode != 0) in getName() 58 return "TouchInput KeyCode " + keyCode; in getName() 61 public static int touchHash(int keyCode){ in touchHash() argument 62 assert keyCode >= 0 && keyCode <= 255; in touchHash() local 63 return 0xfedcba98 + keyCode; in touchHash() 67 return touchHash(keyCode); in triggerHashCode() 71 return keyCode; in getKeyCode()
|
D | KeyTrigger.java | 44 private final int keyCode; field in KeyTrigger 51 public KeyTrigger(int keyCode){ in KeyTrigger() argument 52 this.keyCode = keyCode; in KeyTrigger() 56 return "KeyCode " + keyCode; in getName() 60 return keyCode; in getKeyCode() 63 public static int keyHash(int keyCode){ in keyHash() argument 64 assert keyCode >= 0 && keyCode <= 255; in keyHash() local 65 return keyCode & 0xff; in keyHash() 69 return keyHash(keyCode); in triggerHashCode()
|
/external/quake/src/com/android/quake/ |
D | QuakeView.java | 78 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 79 if (!weWantThisKeyCode(keyCode)) { in onKeyDown() 80 return super.onKeyDown(keyCode, event); in onKeyDown() 82 switch (keyCode) { in onKeyDown() 93 keyCodeToQuakeCode(keyCode)); in onKeyDown() 98 public boolean onKeyUp(int keyCode, KeyEvent event) { in onKeyUp() argument 99 if (!weWantThisKeyCode(keyCode)) { in onKeyUp() 100 return super.onKeyUp(keyCode, event); in onKeyUp() 102 switch (keyCode) { in onKeyUp() 112 keyCodeToQuakeCode(keyCode)); in onKeyUp() [all …]
|
/external/jmonkeyengine/engine/src/core/com/jme3/input/event/ |
D | KeyInputEvent.java | 44 private int keyCode; field in KeyInputEvent 49 public KeyInputEvent(int keyCode, char keyChar, boolean pressed, boolean repeating) { in KeyInputEvent() argument 50 this.keyCode = keyCode; in KeyInputEvent() 73 return keyCode; in getKeyCode() 105 String str = "Key(CODE="+keyCode; in toString()
|
D | TouchEvent.java | 101 private int keyCode; field in TouchEvent 127 keyCode = 0; in set() 179 return keyCode; in getKeyCode() 182 public void setKeyCode(int keyCode) { in setKeyCode() argument 183 this.keyCode = keyCode; in setKeyCode()
|
/external/webkit/Source/WebCore/platform/android/ |
D | KeyEventAndroid.cpp | 41 static int windowsKeyCodeForKeyEvent(unsigned int keyCode) in windowsKeyCodeForKeyEvent() argument 44 switch (keyCode) { in windowsKeyCodeForKeyEvent() 169 static String keyIdentifierForAndroidKeyCode(int keyCode) in keyIdentifierForAndroidKeyCode() argument 173 switch (keyCode) { in keyIdentifierForAndroidKeyCode() 194 sprintf(upper, "U+%04X", windowsKeyCodeForKeyEvent(keyCode)); in keyIdentifierForAndroidKeyCode() 213 PlatformKeyboardEvent::PlatformKeyboardEvent(int keyCode, UChar32 unichar, in PlatformKeyboardEvent() argument 218 , m_keyIdentifier(keyIdentifierForAndroidKeyCode(keyCode)) in PlatformKeyboardEvent() 220 , m_windowsVirtualKeyCode(windowsKeyCodeForKeyEvent(keyCode)) in PlatformKeyboardEvent() 221 , m_nativeVirtualKeyCode(keyCode) in PlatformKeyboardEvent()
|
/external/webkit/Tools/DumpRenderTree/mac/ |
D | EventSendingController.mm | 575 unsigned short keyCode = 0; 579 keyCode = 0x7B; 583 keyCode = 0x7C; 587 keyCode = 0x7E; 591 keyCode = 0x7D; 595 keyCode = 0x74; 599 keyCode = 0x79; 603 keyCode = 0x73; 607 keyCode = 0x77; 611 keyCode = 0x72; [all …]
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | GalleryTest.java | 33 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadRightShouldTriggerKeyEventDPadRight() 41 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadLeftShouldTriggerKeyEventListener() 48 int keyCode; field in GalleryTest.TestOnKeyListener 52 public boolean onKey(View view, int keyCode, KeyEvent event) { in onKey() argument 54 this.keyCode = keyCode; in onKey()
|
/external/skia/legacy/src/animator/ |
D | SkDisplayEvents.cpp | 51 int keyCode = state ? state->fCode : 0; in doEvent() local 60 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in doEvent() 62 evt->fLastCode = (SkKey) keyCode; in doEvent() 98 int keyCode = state ? state->fCode : 0; in removeEvent() local 105 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in removeEvent()
|
/external/webkit/Source/WebKit/chromium/tests/ |
D | KeyboardTest.cpp | 66 char keyCode, in setupKeyDownEvent() argument 69 keyboardEvent->windowsKeyCode = keyCode; in setupKeyDownEvent() 72 keyboardEvent->text[0] = keyCode; in setupKeyDownEvent() 79 const char* interpretOSModifierKeyPress(char keyCode) in interpretOSModifierKeyPress() argument 87 setupKeyDownEvent(&keyboardEvent, keyCode, osModifier); in interpretOSModifierKeyPress() 92 const char* interpretCtrlKeyPress(char keyCode) in interpretCtrlKeyPress() argument 95 setupKeyDownEvent(&keyboardEvent, keyCode, WebInputEvent::ControlKey); in interpretCtrlKeyPress()
|
D | PopupMenuTest.cpp | 215 void simulateKeyDownEvent(int keyCode) in simulateKeyDownEvent() argument 217 simulateKeyEvent(WebInputEvent::RawKeyDown, keyCode); in simulateKeyDownEvent() 220 void simulateKeyUpEvent(int keyCode) in simulateKeyUpEvent() argument 222 simulateKeyEvent(WebInputEvent::KeyUp, keyCode); in simulateKeyUpEvent() 227 void simulateKeyEvent(WebInputEvent::Type eventType, int keyCode) in simulateKeyEvent() argument 230 keyEvent.windowsKeyCode = keyCode; in simulateKeyEvent()
|
/external/skia/src/animator/ |
D | SkDisplayEvents.cpp | 51 int keyCode = state ? state->fCode : 0; in doEvent() local 60 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in doEvent() 62 evt->fLastCode = (SkKey) keyCode; in doEvent() 98 int keyCode = state ? state->fCode : 0; in removeEvent() local 105 …if ((int) evt->code > keyCode || (int) (evt->fMax != (SkKey) -1 ? evt->fMax : evt->code) < keyCode) in removeEvent()
|
/external/webkit/Source/WebCore/inspector/front-end/ |
D | KeyboardShortcut.js | 95 WebInspector.KeyboardShortcut.makeKey = function(keyCode, optModifiers) argument 97 if (typeof keyCode === "string") 98 keyCode = keyCode.charCodeAt(0) - 32; 102 return WebInspector.KeyboardShortcut._makeKeyFromCodeAndModifiers(keyCode, modifiers); 116 …return WebInspector.KeyboardShortcut._makeKeyFromCodeAndModifiers(keyboardEvent.keyCode, modifiers… 145 WebInspector.KeyboardShortcut._makeKeyFromCodeAndModifiers = function(keyCode, modifiers) argument 147 return (keyCode & 255) | (modifiers << 8);
|
D | GoToLineDialog.js | 98 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Tab.code) { 103 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) 106 if (this._closeKeys.indexOf(event.keyCode) >= 0) {
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | KeyboardConfigDialogPreference.java | 211 public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) { in onKey() argument 217 mLeftText.setText(getKeyLabel(keyCode)); in onKey() 218 mLeftKeyCode = keyCode; in onKey() 221 mRightText.setText(getKeyLabel(keyCode)); in onKey() 222 mRightKeyCode = keyCode; in onKey() 225 mJumpText.setText(getKeyLabel(keyCode)); in onKey() 226 mJumpKeyCode = keyCode; in onKey() 229 mAttackText.setText(getKeyLabel(keyCode)); in onKey() 230 mAttackKeyCode = keyCode; in onKey()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowGallery.java | 15 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 16 switch (keyCode) { in onKeyDown() 20 onKeyListener.onKey(gallery, keyCode, event); in onKeyDown()
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/core/controls/ |
D | CTableCombo.java | 232 e.keyCode = event.keyCode; in handleTableEvent() 241 e.keyCode = event.keyCode; in handleTableEvent() 267 e.keyCode = event.keyCode; in handleTableEvent() 388 if (event.keyCode == SWT.ARROW_UP || event.keyCode == SWT.ARROW_DOWN) { in handleTextEvent() 390 if (event.keyCode == SWT.ARROW_UP) { in handleTextEvent() 431 e.keyCode = event.keyCode; in handleTextEvent() 442 e.keyCode = event.keyCode; in handleTextEvent() 489 e.keyCode = event.keyCode; in handleTextEvent()
|
/external/webkit/Source/WebCore/platform/mac/ |
D | KeyEventMac.mm | 42 // Check that this is the type of event that has a keyCode. 55 switch ([event keyCode]) { 86 switch ([event keyCode]) { 130 switch ([event keyCode]) { 168 // so e.g. 'A' gets the same keyCode on QWERTY, AZERTY or Dvorak layouts. 179 … // Ctrl+A on an AZERTY keyboard would get VK_Q keyCode if we relied on -[NSEvent keyCode] below. 187 …// E.g. the key next to Caps Lock has the same Event.keyCode on U.S. keyboard ('A') and on Russian… 188 return windowsKeyCodeForKeyCode([event keyCode]); 198 , m_nativeVirtualKeyCode([event keyCode])
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/ |
D | AbstractTextPropertyEditor.java | 253 lowEvent.keyCode = event.keyCode; in postKeyEvent() 269 if (e.keyCode == SWT.CR) { in handleKeyPressed() 277 } else if (e.keyCode == SWT.ESC) { in handleKeyPressed() 279 } else if (e.keyCode == SWT.ARROW_UP || e.keyCode == SWT.ARROW_DOWN) { in handleKeyPressed()
|
/external/webkit/Source/WebCore/platform/haiku/ |
D | PlatformKeyboardEventHaiku.cpp | 43 static String keyIdentifierForHaikuKeyCode(char singleByte, int keyCode) in keyIdentifierForHaikuKeyCode() argument 48 switch (keyCode) { in keyIdentifierForHaikuKeyCode() 113 static int windowsKeyCodeForKeyEvent(char singleByte, int keyCode) in windowsKeyCodeForKeyEvent() argument 117 switch (keyCode) { in windowsKeyCodeForKeyEvent()
|
/external/chromium/chrome/browser/ui/cocoa/ |
D | nsmenuitem_additions_unittest.mm | 18 const NSUInteger keyCode) { 28 keyCode:keyCode]; 281 NSString* keyCodeToCharacter(NSUInteger keyCode, 293 (UInt16)keyCode, 326 NSUInteger keyCode = 0x2e; // "m" on a US layout and most other layouts. 335 keyCode = 0x29; 337 keyCode = 0x28; 339 keyCode = 0x16; 341 keyCode = 0x1a; 345 NSString* chars = keyCodeToCharacter(keyCode, modifiers, ref); [all …]
|
/external/webkit/Source/WebCore/platform/win/ |
D | KeyEventWin.cpp | 41 static String keyIdentifierForWindowsKeyCode(unsigned short keyCode) in keyIdentifierForWindowsKeyCode() argument 43 switch (keyCode) { in keyIdentifierForWindowsKeyCode() 141 return String::format("U+%04X", toASCIIUpper(keyCode)); in keyIdentifierForWindowsKeyCode()
|
/external/webkit/Source/WebKit/chromium/src/ |
D | WebInputEvent.cpp | 46 static const char* staticKeyIdentifiers(unsigned short keyCode) in staticKeyIdentifiers() argument 48 switch (keyCode) { in staticKeyIdentifiers()
|
/external/webkit/Source/WebCore/platform/brew/ |
D | PlatformKeyboardEventBrew.cpp | 43 static String keyIdentifierForBrewKeyCode(uint16 keyCode) in keyIdentifierForBrewKeyCode() argument 45 switch (keyCode) { in keyIdentifierForBrewKeyCode() 109 return String::format("U+%04X", toASCIIUpper(keyCode)); in keyIdentifierForBrewKeyCode()
|
/external/zxing/qr_scanner/src/com/google/zxing/client/android/ |
D | CaptureActivity.java | 163 public boolean onKeyDown(int keyCode, KeyEvent event) { in onKeyDown() argument 164 if (keyCode == KeyEvent.KEYCODE_BACK) { in onKeyDown() 168 } else if (keyCode == KeyEvent.KEYCODE_FOCUS || keyCode == KeyEvent.KEYCODE_CAMERA) { in onKeyDown() 172 return super.onKeyDown(keyCode, event); in onKeyDown()
|