Changes in uspace/drv/usbhid/kbddev.h [2391aaf:48d2765] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbddev.h
r2391aaf r48d2765 46 46 47 47 /*----------------------------------------------------------------------------*/ 48 49 48 /** 50 * @brief USB/HID keyboard device type. 49 * USB/HID keyboard device type. 50 * 51 * Holds a reference to generic USB/HID device structure and keyboard-specific 52 * data, such as currently pressed keys, modifiers and lock keys. 53 * 54 * Also holds a IPC phone to the console (since there is now no other way to 55 * communicate with it). 56 * 57 * @note Storing active lock keys in this structure results in their setting 58 * being device-specific. 51 59 */ 52 60 typedef struct { 61 /** Structure holding generic USB/HID device information. */ 53 62 usbhid_dev_t *hid_dev; 54 63 55 uint8_t *keycodes; 56 size_t keycode_count; 64 /** Currently pressed keys (not translated to key codes). */ 65 uint8_t *keys; 66 /** Count of stored keys (i.e. number of keys in the report). */ 67 size_t key_count; 68 /** Currently pressed modifiers (bitmap). */ 57 69 uint8_t modifiers; 58 70 71 /** Currently active modifiers including locks. Sent to the console. */ 59 72 unsigned mods; 73 74 /** Currently active lock keys. */ 60 75 unsigned lock_keys; 61 76 77 /** IPC phone to the console device (for sending key events). */ 62 78 int console_phone; 63 79 80 /** State of the structure (for checking before use). */ 64 81 int initialized; 65 82 } usbhid_kbd_t;
Note:
See TracChangeset
for help on using the changeset viewer.