Changeset 2f7a564 in mainline for uspace/srv/hid/input/include
- Timestamp:
- 2011-06-13T22:05:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef15fbb
- Parents:
- a07a454
- Location:
- uspace/srv/hid/input/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/include/kbd.h
ra07a454 r2f7a564 47 47 struct kbd_port_ops; 48 48 struct kbd_ctl_ops; 49 struct layout; 49 50 50 51 typedef struct kbd_dev { … … 63 64 /** Controller-private data */ 64 65 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; 65 75 } kbd_dev_t; 66 76 -
uspace/srv/hid/input/include/layout.h
ra07a454 r2f7a564 41 41 #include <io/console.h> 42 42 43 typedef struct { 44 void (*reset)(void); 45 wchar_t (*parse_ev)(kbd_event_t *);46 } layout_op_t;43 /** Layout instance state */ 44 typedef struct layout { 45 /** Ops structure */ 46 struct layout_ops *ops; 47 47 48 extern layout_op_t us_qwerty_op; 49 extern layout_op_t us_dvorak_op; 50 extern layout_op_t cz_op; 48 /* Layout-private data */ 49 void *layout_priv; 50 } layout_t; 51 52 /** Layout ops */ 53 typedef struct layout_ops { 54 int (*create)(layout_t *); 55 void (*destroy)(layout_t *); 56 wchar_t (*parse_ev)(layout_t *, kbd_event_t *); 57 } layout_ops_t; 58 59 extern layout_ops_t us_qwerty_ops; 60 extern layout_ops_t us_dvorak_ops; 61 extern layout_ops_t cz_ops; 62 63 extern layout_t *layout_create(layout_ops_t *); 64 extern void layout_destroy(layout_t *); 65 extern wchar_t layout_parse_ev(layout_t *, kbd_event_t *); 51 66 52 67 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
