Home
last modified time | relevance | path

Searched refs:hid_code (Results 1 – 1 of 1) sorted by relevance

/external/qemu/hw/
Dusb-hid.c447 uint8_t hid_code, key; in usb_keyboard_event() local
451 hid_code = usb_hid_usage_keys[key | ((s->modifiers >> 1) & (1 << 7))]; in usb_keyboard_event()
454 switch (hid_code) { in usb_keyboard_event()
465 s->modifiers &= ~(1 << (hid_code & 0x0f)); in usb_keyboard_event()
469 s->modifiers |= 1 << (hid_code & 0x0f); in usb_keyboard_event()
475 if (s->key[i] == hid_code) { in usb_keyboard_event()
485 if (s->key[i] == hid_code) in usb_keyboard_event()
489 s->key[s->keys ++] = hid_code; in usb_keyboard_event()