Changeset 9be360ee in mainline for uspace/srv/hid/kbd/ctl/apple.c
- Timestamp:
- 2011-06-11T22:06:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f3f9659
- Parents:
- 56ad818
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/kbd/ctl/apple.c
r56ad818 r9be360ee 1 1 /* 2 * Copyright (c) 201 0Jiri Svoboda2 * Copyright (c) 2011 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 42 42 #include <kbd_port.h> 43 43 44 static void apple_ctl_parse_scancode(int scancode);45 static int apple_ctl_init(kbd_ port_ops_t *kbd_port);46 static void apple_ctl_set_ind(unsigned mods);44 static void apple_ctl_parse_scancode(int); 45 static int apple_ctl_init(kbd_dev_t *); 46 static void apple_ctl_set_ind(unsigned); 47 47 48 48 kbd_ctl_ops_t apple_ctl = { … … 54 54 #define KBD_KEY_RELEASE 0x80 55 55 56 static kbd_dev_t *kbd_dev; 57 56 58 static int scanmap[]; 57 59 58 static int apple_ctl_init(kbd_ port_ops_t *kbd_port)60 static int apple_ctl_init(kbd_dev_t *kdev) 59 61 { 60 (void) kbd_port;62 kbd_dev = kdev; 61 63 return 0; 62 64 } … … 79 81 key = scanmap[scancode]; 80 82 if (key != 0) 81 kbd_push_ev( type, key);83 kbd_push_ev(kbd_dev, type, key); 82 84 } 83 85
Note:
See TracChangeset
for help on using the changeset viewer.