Home
last modified time | relevance | path

Searched refs:keycode (Results 1 – 25 of 67) 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()
DKeyboardConfigDialogPreference.java139 protected String getKeyLabel(int keycode) { in getKeyLabel() argument
145 if (keycode > 0 && keycode < mKeyLabels.length) { in getKeyLabel()
146 result = mKeyLabels[keycode - 1]; in getKeyLabel()
/external/u-boot/drivers/input/
Dinput.c377 int keycode[], int num_keycodes, int *same) in input_check_keycodes() argument
386 *same = sort_array_by_ordering(keycode, num_keycodes, in input_check_keycodes()
389 memcpy(config->prev_keycodes, keycode, num_keycodes * sizeof(int)); in input_check_keycodes()
409 int keycode, char output_ch[], int max_chars) in input_keycode_to_ansi364() argument
416 if (keycode != kbd_to_ansi364[i].kbd_scan_code) in input_keycode_to_ansi364()
452 int keycode[], int num_keycodes, char output_ch[], in input_keycodes_to_ascii() argument
463 int key = keycode[i] & KEY_MASK; in input_keycodes_to_ascii()
467 keycode[i] & KEY_RELEASE); in input_keycodes_to_ascii()
473 int key = keycode[i]; in input_keycodes_to_ascii()
509 static int _input_send_keycodes(struct input_config *config, int keycode[], in _input_send_keycodes() argument
[all …]
Dkey_matrix.c55 int num_keys, int keycode[], int max_keycodes) in key_matrix_decode() argument
76 keycode[valid++] = keymap[pos]; in key_matrix_decode()
/external/libxkbcommon/xkbcommon/bench/
Dkey-proc.c35 xkb_keycode_t keycode; in bench() local
40 keycode = (rand() % (255 - 9)) + 9; in bench()
41 if (keys[keycode]) { in bench()
42 xkb_state_update_key(state, keycode, XKB_KEY_UP); in bench()
43 keys[keycode] = 0; in bench()
44 keysym = xkb_state_key_get_one_sym(state, keycode); in bench()
47 xkb_state_update_key(state, keycode, XKB_KEY_DOWN); in bench()
48 keys[keycode] = 1; in bench()
/external/u-boot/common/
Dusb_kbd.c169 uint8_t keycode = 0; in usb_kbd_translate() local
187 keycode = scancode - 4 + 'a'; in usb_kbd_translate()
190 keycode &= ~CAPITAL_MASK; in usb_kbd_translate()
194 if (keycode & CAPITAL_MASK) in usb_kbd_translate()
195 keycode &= ~CAPITAL_MASK; in usb_kbd_translate()
197 keycode |= CAPITAL_MASK; in usb_kbd_translate()
204 keycode = usb_kbd_numkey_shifted[scancode - 0x1e]; in usb_kbd_translate()
206 keycode = usb_kbd_numkey[scancode - 0x1e]; in usb_kbd_translate()
211 keycode = usb_kbd_arrow[scancode - 0x4f]; in usb_kbd_translate()
215 keycode = usb_kbd_num_keypad[scancode - 0x54]; in usb_kbd_translate()
[all …]
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/
DKeycodeMap.java57 public boolean hasIsoLayoutPosition(Integer keycode) { in hasIsoLayoutPosition() argument
58 return keycodeToIsoLayout.containsKey(keycode); in hasIsoLayoutPosition()
61 public IsoLayoutPosition getIsoLayoutPosition(Integer keycode) { in getIsoLayoutPosition() argument
62 return checkNotNull(keycodeToIsoLayout.get(keycode), "No keycode for %s [%s]", keycode, in getIsoLayoutPosition()
/external/libxkbcommon/xkbcommon/doc/
Dquick-guide.md122 from it. Given a keycode for a key, we can get its keysym:
126 xkb_keycode_t keycode;
129 keycode = event->keycode;
130 keysym = xkb_state_key_get_one_sym(state, keycode);
151 num_keysyms = xkb_state_key_get_syms(state, keycode, &keysyms);
161 size = xkb_state_key_get_utf8(state, keycode, NULL, 0) + 1;
165 xkb_state_key_get_utf8(state, keycode, buffer, size);
178 changed = xkb_state_update_key(state, keycode, XKB_KEY_DOWN);
180 changed = xkb_state_update_key(state, keycode, XKB_KEY_UP);
189 if (<key repeat> && !xkb_keymap_key_repeats(keymap, keycode))
/external/libxkbcommon/xkbcommon/test/data/symbols/macintosh_vndr/
Dapple19 // key <PRSC> { [ F13 ] }; // should be keycode 93 or
20 // key <FK13> { [ F13 ] }; // should be keycode 118
21 // key <SCLK> { [ F14 ] }; // should be keycode 123 or
22 // key <FK14> { [ F14 ] }; // should be keycode 119
23 // key <PAUS> { [ F15 ] }; // should be keycode 127 or
24 // key <FK15> { [ F15 ] }; // should be keycode 120
46 // replace key <MENU> { [ KP_Enter ] }; // should be keycode 117
/external/libxkbcommon/xkbcommon/test/
Dcommon.c352 xkb_keycode_t keycode) in test_print_keycode_state() argument
365 nsyms = xkb_state_key_get_syms(state, keycode, &syms); in test_print_keycode_state()
383 sym = xkb_state_key_get_one_sym(state, keycode); in test_print_keycode_state()
397 xkb_state_key_get_utf8(state, keycode, s, sizeof(s)); in test_print_keycode_state()
400 layout = xkb_state_key_get_layout(state, keycode); in test_print_keycode_state()
405 xkb_state_key_get_level(state, keycode, layout)); in test_print_keycode_state()
412 if (xkb_state_mod_index_is_consumed(state, keycode, mod)) in test_print_keycode_state()
Dinteractive-evdev.c243 xkb_keycode_t keycode; in process_event() local
251 keycode = evdev_offset + code; in process_event()
254 if (value == KEY_STATE_REPEAT && !xkb_keymap_key_repeats(keymap, keycode)) in process_event()
258 xkb_keysym_t keysym = xkb_state_key_get_one_sym(kbd->state, keycode); in process_event()
263 test_print_keycode_state(kbd->state, kbd->compose_state, keycode); in process_event()
272 changed = xkb_state_update_key(kbd->state, keycode, XKB_KEY_UP); in process_event()
274 changed = xkb_state_update_key(kbd->state, keycode, XKB_KEY_DOWN); in process_event()
Dinteractive-x11.c237 xkb_keycode_t keycode = event->detail; in process_event() local
239 test_print_keycode_state(kbd->state, NULL, keycode); in process_event()
242 if (keycode == 9) in process_event()
Dtest.h87 xkb_keycode_t keycode);
/external/u-boot/arch/sandbox/include/asm/
Dsdl.h54 int sandbox_sdl_key_pressed(int keycode);
95 static inline int sandbox_sdl_key_pressed(int keycode) in sandbox_sdl_key_pressed() argument
/external/strace/
Devdev.c97 unsigned int keycode[2]; in keycode_ioctl() local
99 if (!umove_or_printaddr(tcp, arg, &keycode)) { in keycode_ioctl()
100 tprintf("[%u, ", keycode[0]); in keycode_ioctl()
101 printxval_index(evdev_keycode, keycode[1], "KEY_???"); in keycode_ioctl()
128 printxval_index(evdev_keycode, ike.keycode, "KEY_???"); in keycode_V2_ioctl()
/external/libxkbcommon/xkbcommon/src/x11/
Dkeymap.c412 keymap->keys[kc].keycode = kc; in get_sym_maps()
555 FAIL_UNLESS(wire->keycode >= keymap->min_key_code && in get_explicits()
556 wire->keycode <= keymap->max_key_code); in get_explicits()
558 key = &keymap->keys[wire->keycode]; in get_explicits()
600 FAIL_UNLESS(wire->keycode >= keymap->min_key_code && in get_modmaps()
601 wire->keycode <= keymap->max_key_code); in get_modmaps()
603 key = &keymap->keys[wire->keycode]; in get_modmaps()
627 FAIL_UNLESS(wire->keycode >= keymap->min_key_code && in get_vmodmaps()
628 wire->keycode <= keymap->max_key_code); in get_vmodmaps()
630 key = &keymap->keys[wire->keycode]; in get_vmodmaps()
/external/u-boot/drivers/misc/
Dcros_ec_sandbox.c60 int keycode; /* corresponding linux key code */ member
213 matrix->keycode = word & 0xffff; in keyscan_read_fdt_matrix()
257 if (matrix->keycode == key[j]) in cros_ec_keyscan()
262 debug("%d: %d,%d\n", matrix->keycode, matrix->row, in cros_ec_keyscan()
/external/autotest/client/site_tests/hardware_Keyboard/src/
Devtest.c353 int keycode = keycode_from_name(key_name); in is_key_supported() local
354 if (keycode) { in is_key_supported()
356 if (test_bit(keycode, bit[EV_KEY])) { in is_key_supported()
357 printf("%d", keycode); in is_key_supported()
/external/u-boot/include/
Dkey_matrix.h57 int num_keys, int keycode[], int max_keycodes);
Dinput.h77 int input_send_keycodes(struct input_config *config, int keycode[], int count);
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/windows/
Dwindows-keycodes.csv1 keycode,iso
/external/cldr/tools/java/org/unicode/cldr/draft/keyboard/osx/
Dosx-keycodes.csv1 keycode,iso
/external/u-boot/arch/sandbox/cpu/
Dsdl.c224 int sandbox_sdl_key_pressed(int keycode) in sandbox_sdl_key_pressed() argument
232 if (key[i] == keycode) in sandbox_sdl_key_pressed()
/external/kernel-headers/original/uapi/linux/
Dkd.h141 unsigned int scancode, keycode; member

123