Searched refs:keycode (Results 1 – 7 of 7) sorted by relevance
| /system/ulib/hid/include/hid/ |
| A D | hid.h | 34 #define hid_for_every_key(keys, keycode) \ argument 35 for (keycode = hid_kbd_next_key(keys); keycode; keycode = hid_kbd_next_key(keys))
|
| /system/core/virtcon/ |
| A D | vc-input.cpp | 25 static bool vc_handle_control_keys(uint8_t keycode, int modifiers) { in vc_handle_control_keys() argument 26 switch (keycode) { in vc_handle_control_keys() 29 vc_set_active(keycode - HID_USAGE_KEY_F1, NULL); in vc_handle_control_keys() 96 static bool vc_handle_device_control_keys(uint8_t keycode, int modifiers) { in vc_handle_device_control_keys() argument 97 switch (keycode) { in vc_handle_device_control_keys() 202 void handle_key_press(uint8_t keycode, int modifiers) { in handle_key_press() argument 204 if (vc_handle_device_control_keys(keycode, modifiers)) in handle_key_press() 212 if (vc_handle_control_keys(keycode, modifiers)) in handle_key_press() 218 keycode, modifiers, vc->keymap, output, sizeof(output)); in handle_key_press()
|
| A D | keyboard.cpp | 26 static int modifiers_from_keycode(uint8_t keycode) { in modifiers_from_keycode() argument 27 switch (keycode) { in modifiers_from_keycode() 91 uint8_t keycode; in vc_input_process() local 97 hid_for_every_key(&keys, keycode) { in vc_input_process() 98 vi->modifiers |= modifiers_from_keycode(keycode); in vc_input_process() 99 if (keycode == HID_USAGE_KEY_CAPSLOCK) { in vc_input_process() 103 vi->handler(keycode, vi->modifiers); in vc_input_process() 108 hid_for_every_key(&keys, keycode) { in vc_input_process() 109 vi->modifiers &= ~modifiers_from_keycode(keycode); in vc_input_process()
|
| A D | keyboard-vt100.cpp | 10 uint32_t hid_key_to_vt100_code(uint8_t keycode, int modifiers, in hid_key_to_vt100_code() argument 16 uint8_t ch = hid_map_key(keycode, modifiers & MOD_SHIFT, keymap); in hid_key_to_vt100_code() 39 switch (keycode) { in hid_key_to_vt100_code()
|
| A D | keyboard-vt100.h | 15 uint32_t hid_key_to_vt100_code(uint8_t keycode, int modifiers,
|
| A D | vc.h | 30 typedef void (*keypress_handler_t)(uint8_t keycode, int modifiers); 161 void handle_key_press(uint8_t keycode, int modifiers);
|
| A D | keyboard-test.cpp | 19 void keypress_handler(uint8_t keycode, int modifiers) { in keypress_handler() argument 20 g_keycode = keycode; in keypress_handler()
|
Completed in 16 milliseconds