Changeset 2f7a564 in mainline for uspace/srv/hid/input/include/kbd.h


Ignore:
Timestamp:
2011-06-13T22:05:30Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ef15fbb
Parents:
a07a454
Message:

Make key lock/modifier state as well as layout state per-device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/include/kbd.h

    ra07a454 r2f7a564  
    4747struct kbd_port_ops;
    4848struct kbd_ctl_ops;
     49struct layout;
    4950
    5051typedef struct kbd_dev {
     
    6364        /** Controller-private data */
    6465        void *ctl_private;
     66
     67        /** Currently active modifiers. */
     68        unsigned mods;
     69
     70        /** Currently pressed lock keys. We track these to tackle autorepeat. */
     71        unsigned lock_keys;
     72
     73        /** Active keyboard layout */
     74        struct layout *active_layout;
    6575} kbd_dev_t;
    6676
Note: See TracChangeset for help on using the changeset viewer.