Ignore:
File:
1 edited

Legend:

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

    r2391aaf r48d2765  
    4646
    4747/*----------------------------------------------------------------------------*/
    48 
    4948/**
    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.
    5159 */
    5260typedef struct {
     61        /** Structure holding generic USB/HID device information. */
    5362        usbhid_dev_t *hid_dev;
    5463       
    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). */
    5769        uint8_t modifiers;
    5870       
     71        /** Currently active modifiers including locks. Sent to the console. */
    5972        unsigned mods;
     73       
     74        /** Currently active lock keys. */
    6075        unsigned lock_keys;
    6176       
     77        /** IPC phone to the console device (for sending key events). */
    6278        int console_phone;
    6379       
     80        /** State of the structure (for checking before use). */
    6481        int initialized;
    6582} usbhid_kbd_t;
Note: See TracChangeset for help on using the changeset viewer.