Changeset c928bb7 in mainline
- Timestamp:
- 2012-12-17T21:36:02Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b55877d, e1a27be
- Parents:
- 5df69cb
- git-author:
- Mohammed Q. Hussain <maastaar@…> (2012-12-17 21:36:02)
- git-committer:
- Jakub Jermar <jakub@…> (2012-12-17 21:36:02)
- Location:
- uspace/srv/hid/input
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/Makefile
r5df69cb rc928bb7 35 35 layout/us_qwerty.c \ 36 36 layout/us_dvorak.c \ 37 layout/ar.c \ 37 38 port/adb.c \ 38 39 port/adb_mouse.c \ -
uspace/srv/hid/input/input.c
r5df69cb rc928bb7 62 62 #include "input.h" 63 63 64 #define NUM_LAYOUTS 364 #define NUM_LAYOUTS 4 65 65 66 66 static layout_ops_t *layout[NUM_LAYOUTS] = { 67 67 &us_qwerty_ops, 68 68 &us_dvorak_ops, 69 &cz_ops 69 &cz_ops, 70 &ar_ops 70 71 }; 71 72 … … 160 161 layout_destroy(kdev->active_layout); 161 162 kdev->active_layout = layout_create(layout[2]); 163 return; 164 } 165 166 if (type == KEY_PRESS && (kdev->mods & KM_LCTRL) && 167 key == KC_F4) { 168 layout_destroy(kdev->active_layout); 169 kdev->active_layout = layout_create(layout[3]); 162 170 return; 163 171 } -
uspace/srv/hid/input/layout.h
r5df69cb rc928bb7 60 60 extern layout_ops_t us_dvorak_ops; 61 61 extern layout_ops_t cz_ops; 62 extern layout_ops_t ar_ops; 62 63 63 64 extern layout_t *layout_create(layout_ops_t *);
Note:
See TracChangeset
for help on using the changeset viewer.