Home
last modified time | relevance | path

Searched refs:keycode (Results 1 – 25 of 63) sorted by relevance

123

/external/replicaisland/src/com/replica/replicaisland/
DInputKeyboard.java34 public void press(float currentTime, int keycode) { in press() argument
35 assert keycode >= 0 && keycode < mKeys.length; in press()
36 if (keycode >= 0 && keycode < mKeys.length){ in press()
37 mKeys[keycode].press(currentTime, 1.0f); in press()
41 public void release(int keycode) {
42 assert keycode >= 0 && keycode < mKeys.length;
43 if (keycode >= 0 && keycode < mKeys.length){
44 mKeys[keycode].release();
DInputSystem.java86 public void keyDown(int keycode) { in keyDown() argument
89 mKeyboard.press(gameTime, keycode); in keyDown()
92 public void keyUp(int keycode) { in keyUp() argument
93 mKeyboard.release(keycode); in keyUp()
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/
DUIUtils.java41 static public boolean shift (int keycode) { in shift() argument
42 return keycode == Keys.SHIFT_LEFT || keycode == Keys.SHIFT_RIGHT; in shift()
52 static public boolean ctrl (int keycode) { in ctrl() argument
54 return keycode == Keys.SYM; in ctrl()
56 return keycode == Keys.CONTROL_LEFT || keycode == Keys.CONTROL_RIGHT; in ctrl()
63 static public boolean alt (int keycode) { in alt() argument
64 return keycode == Keys.ALT_LEFT || keycode == Keys.ALT_RIGHT; in alt()
/external/libvncserver/webclients/novnc/include/
Dkeyboard.js201 function keysymFromKeyCode(keycode, shiftPressed) { argument
202 if (typeof(keycode) !== 'number') {
206 if (keycode >= 0x30 && keycode <= 0x39) {
207 return keycode; // digit
209 if (keycode >= 0x41 && keycode <= 0x5a) {
211 return shiftPressed ? keycode : keycode + 32; // A-Z
213 if (keycode >= 0x60 && keycode <= 0x69) {
214 return 0xffb0 + (keycode - 0x60); // numpad 0-9
217 switch(keycode) {
231 return nonCharacterKey({keyCode: keycode});
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
DCameraInputController.java223 public boolean keyDown (int keycode) { in keyDown() argument
224 if (keycode == activateKey) activatePressed = true; in keyDown()
225 if (keycode == forwardKey) in keyDown()
227 else if (keycode == backwardKey) in keyDown()
229 else if (keycode == rotateRightKey) in keyDown()
231 else if (keycode == rotateLeftKey) rotateLeftPressed = true; in keyDown()
236 public boolean keyUp (int keycode) { in keyUp() argument
237 if (keycode == activateKey) { in keyUp()
241 if (keycode == forwardKey) in keyUp()
243 else if (keycode == backwardKey) in keyUp()
[all …]
DFirstPersonCameraController.java46 public boolean keyDown (int keycode) { in keyDown() argument
47 keys.put(keycode, keycode); in keyDown()
52 public boolean keyUp (int keycode) { in keyUp() argument
53 keys.remove(keycode, 0); in keyUp()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DTextureAtlasTest.java71 public boolean keyUp (int keycode) { in create()
72 if (keycode == Keys.UP) { in create()
74 } else if (keycode == Keys.RIGHT) { in create()
76 } else if (keycode == Keys.LEFT) { in create()
78 } else if (keycode == Keys.DOWN) { in create()
81 return super.keyUp(keycode); in create()
DInputTest.java56 public boolean keyDown (int keycode) { in keyDown() argument
57 Gdx.app.log("Input Test", "key down: " + keycode); in keyDown()
58 if (keycode == Keys.G) Gdx.input.setCursorCatched(!Gdx.input.isCursorCatched()); in keyDown()
69 public boolean keyUp (int keycode) { in keyUp() argument
70 Gdx.app.log("Input Test", "key up: " + keycode); in keyUp()
DParticleEmitterTest.java73 public boolean keyUp (int keycode) { in create()
81 public boolean keyDown (int keycode) { in create()
83 if (keycode == Input.Keys.DPAD_UP) in create()
85 else if (keycode == Input.Keys.DPAD_DOWN) in create()
87 else if (keycode == Input.Keys.SPACE) { in create()
94 } else if (keycode == Input.Keys.ENTER) { in create()
DPixmapPackerTest.java88 public boolean keyDown (int keycode) { in create()
89 if (keycode >= Input.Keys.NUM_0 && keycode <= Input.Keys.NUM_9) { in create()
90 int number = keycode - Input.Keys.NUM_0; in create()
95 return super.keyDown(keycode); in create()
DBulletTestCollection.java125 public boolean keyDown (int keycode) { in keyDown() argument
126 return tests[testIndex].keyDown(keycode); in keyDown()
135 public boolean keyUp (int keycode) { in keyUp() argument
136 boolean result = tests[testIndex].keyUp(keycode); in keyUp()
137 if ((result == false) && (keycode == Keys.SPACE || keycode == Keys.MENU)) { in keyUp()
DBox2DTestCollection.java82 public boolean keyDown (int keycode) { in keyDown() argument
83 tests[testIndex].keyDown(keycode); in keyDown()
95 public boolean keyUp (int keycode) { in keyUp() argument
96 tests[testIndex].keyUp(keycode); in keyUp()
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
DTextField.java724 int keycode; field in TextField.KeyRepeatTask
727 inputListener.keyDown(null, keycode); in run()
816 public boolean keyDown (InputEvent event, int keycode) { in keyDown() argument
830 if (keycode == Keys.V) { in keyDown()
834 if (keycode == Keys.C || keycode == Keys.INSERT) { in keyDown()
838 if (keycode == Keys.X) { in keyDown()
842 if (keycode == Keys.A) { in keyDown()
846 if (keycode == Keys.Z) { in keyDown()
856 if (keycode == Keys.INSERT) paste(clipboard.getContents(), true); in keyDown()
857 if (keycode == Keys.FORWARD_DEL) cut(true); in keyDown()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/
DInputMultiplexer.java70 public boolean keyDown (int keycode) { in keyDown() argument
72 if (processors.get(i).keyDown(keycode)) return true; in keyDown()
76 public boolean keyUp (int keycode) { in keyUp() argument
78 if (processors.get(i).keyUp(keycode)) return true; in keyUp()
DInput.java247 public static String toString (int keycode) { in toString() argument
248 …if (keycode < 0) throw new IllegalArgumentException("keycode cannot be negative, keycode: " + keyc… in toString()
249 …if (keycode > 255) throw new IllegalArgumentException("keycode cannot be greater than 255, keycode… in toString()
250 switch (keycode) { in toString()
DInputEventQueue.java103 public synchronized boolean keyDown (int keycode) { in keyDown() argument
106 queue.add(keycode); in keyDown()
110 public synchronized boolean keyUp (int keycode) { in keyUp() argument
113 queue.add(keycode); in keyUp()
DInputAdapter.java23 public boolean keyDown (int keycode) { in keyDown() argument
27 public boolean keyUp (int keycode) { in keyUp() argument
DInputProcessor.java32 public boolean keyDown (int keycode); in keyDown() argument
38 public boolean keyUp (int keycode); in keyUp() argument
/external/libgdx/gdx/src/com/badlogic/gdx/input/
DRemoteSender.java88 public boolean keyDown (int keycode) { in keyDown() argument
95 out.writeInt(keycode); in keyDown()
105 public boolean keyUp (int keycode) { in keyUp() argument
112 out.writeInt(keycode); in keyUp()
/external/skia/platform_tools/android/apps/sample_app/src/main/jni/
DAndroidKeyToSkKey.h18 SkKey AndroidKeycodeToSkKey(int keycode) { in AndroidKeycodeToSkKey() argument
19 switch (keycode) { in AndroidKeycodeToSkKey()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/
DModelTest.java128 public boolean keyUp (int keycode) { in keyUp() argument
129 if (keycode == Keys.SPACE || keycode == Keys.MENU) switchAnimation(); in keyUp()
130 return super.keyUp(keycode); in keyUp()
DSkeletonTest.java151 public boolean keyUp (int keycode) { in keyUp() argument
152 if (keycode == Keys.SPACE || keycode == Keys.MENU) switchAnimation(); in keyUp()
153 return super.keyUp(keycode); in keyUp()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/
DVehicleTest.java194 public boolean keyDown (int keycode) { in keyDown() argument
195 switch (keycode) { in keyDown()
209 return super.keyDown(keycode); in keyDown()
213 public boolean keyUp (int keycode) { in keyUp() argument
214 switch (keycode) { in keyUp()
235 return super.keyUp(keycode); in keyUp()
/external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/ois-v1-4svn/includes/linux/
DLinuxKeyboard.h69 …if(e.type == KeyPress && e.xkey.keycode == event.xkey.keycode && (e.xkey.time - event.xkey.time) <… in _isKeyRepeat()
/external/strace/
Devdev.c162 unsigned int keycode[2]; in keycode_ioctl() local
169 if (!verbose(tcp) || umove(tcp, arg, &keycode) < 0) in keycode_ioctl()
172 tprintf(", [%u, ", keycode[0]); in keycode_ioctl()
173 printxval(evdev_keycode, keycode[1], "KEY_???"); in keycode_ioctl()
197 printxval(evdev_keycode, ike.keycode, "KEY_???"); in keycode_V2_ioctl()

123