Changes in uspace/srv/hid/input/ctl/apple.c [1875a0c:60e5a856] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/apple.c
r1875a0c r60e5a856 33 33 /** 34 34 * @file 35 * @brief 35 * @brief Apple ADB keyboard controller driver. 36 36 */ 37 37 … … 42 42 #include <kbd_port.h> 43 43 44 static void apple_ctl_parse (sysarg_t);44 static void apple_ctl_parse_scancode(int); 45 45 static int apple_ctl_init(kbd_dev_t *); 46 static void apple_ctl_set_ind(kbd_dev_t *, unsigned int);46 static void apple_ctl_set_ind(kbd_dev_t *, unsigned); 47 47 48 48 kbd_ctl_ops_t apple_ctl = { 49 .parse = apple_ctl_parse,49 .parse_scancode = apple_ctl_parse_scancode, 50 50 .init = apple_ctl_init, 51 51 .set_ind = apple_ctl_set_ind … … 64 64 } 65 65 66 static void apple_ctl_parse (sysarg_t scancode)66 static void apple_ctl_parse_scancode(int scancode) 67 67 { 68 68 kbd_event_type_t type; 69 69 unsigned int key; 70 70 71 if (scancode >= 0x100)71 if (scancode < 0 || scancode >= 0x100) 72 72 return; 73 73 … … 81 81 key = scanmap[scancode]; 82 82 if (key != 0) 83 kbd_push_ev ent(kbd_dev, type, key);83 kbd_push_ev(kbd_dev, type, key); 84 84 } 85 85
Note:
See TracChangeset
for help on using the changeset viewer.