Changes in uspace/drv/usbhid/kbddev.h [48d2765:2391aaf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbddev.h
r48d2765 r2391aaf 46 46 47 47 /*----------------------------------------------------------------------------*/ 48 48 49 /** 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. 50 * @brief USB/HID keyboard device type. 59 51 */ 60 52 typedef struct { 61 /** Structure holding generic USB/HID device information. */62 53 usbhid_dev_t *hid_dev; 63 54 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). */ 55 uint8_t *keycodes; 56 size_t keycode_count; 69 57 uint8_t modifiers; 70 58 71 /** Currently active modifiers including locks. Sent to the console. */72 59 unsigned mods; 73 74 /** Currently active lock keys. */75 60 unsigned lock_keys; 76 61 77 /** IPC phone to the console device (for sending key events). */78 62 int console_phone; 79 63 80 /** State of the structure (for checking before use). */81 64 int initialized; 82 65 } usbhid_kbd_t;
Note:
See TracChangeset
for help on using the changeset viewer.