Changeset 215abc1 in mainline for uspace/srv/kbd/genarch
- Timestamp:
- 2009-06-03T18:49:33Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 05b9912
- Parents:
- bbdbf86
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/genarch/stroke.c
rbbdbf86 r215abc1 32 32 /** 33 33 * @file 34 * @brief 34 * @brief Stroke simulator. 35 35 * 36 36 * When simulating a keyboard using a serial TTY we need to convert the 37 37 * recognized strokes (such as Shift-A) to sequences of key presses and 38 38 * releases (such as 'press Shift, press A, release A, release Shift'). 39 * 39 40 */ 40 41 41 42 #include <stroke.h> 42 43 #include <kbd.h> 43 #include < kbd/kbd.h>44 #include < kbd/keycode.h>44 #include <io/console.h> 45 #include <io/keycode.h> 45 46 46 47 /** Correspondence between modifers and the modifier keycodes. */ … … 59 60 while (mods_keys[i][0] != 0) { 60 61 if (mod & mods_keys[i][0]) { 61 kbd_push_ev(KE _PRESS, mods_keys[i][1]);62 kbd_push_ev(KEY_PRESS, mods_keys[i][1]); 62 63 } 63 64 ++i; … … 66 67 /* Simulate key press and release. */ 67 68 if (key != 0) { 68 kbd_push_ev(KE _PRESS, key);69 kbd_push_ev(KE _RELEASE, key);69 kbd_push_ev(KEY_PRESS, key); 70 kbd_push_ev(KEY_RELEASE, key); 70 71 } 71 72 … … 74 75 while (mods_keys[i][0] != 0) { 75 76 if (mod & mods_keys[i][0]) { 76 kbd_push_ev(KE _RELEASE, mods_keys[i][1]);77 kbd_push_ev(KEY_RELEASE, mods_keys[i][1]); 77 78 } 78 79 ++i; … … 82 83 /** 83 84 * @} 84 */ 85 */
Note:
See TracChangeset
for help on using the changeset viewer.