Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbddev.h

    r48d2765 r2391aaf  
    4646
    4747/*----------------------------------------------------------------------------*/
     48
    4849/**
    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.
    5951 */
    6052typedef struct {
    61         /** Structure holding generic USB/HID device information. */
    6253        usbhid_dev_t *hid_dev;
    6354       
    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;
    6957        uint8_t modifiers;
    7058       
    71         /** Currently active modifiers including locks. Sent to the console. */
    7259        unsigned mods;
    73        
    74         /** Currently active lock keys. */
    7560        unsigned lock_keys;
    7661       
    77         /** IPC phone to the console device (for sending key events). */
    7862        int console_phone;
    7963       
    80         /** State of the structure (for checking before use). */
    8164        int initialized;
    8265} usbhid_kbd_t;
Note: See TracChangeset for help on using the changeset viewer.