Changeset 9be360ee in mainline for uspace/srv/hid/kbd/ctl/stty.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/stty.c
r56ad818 r9be360ee 1 1 /* 2 * Copyright (c) 20 09Jiri Svoboda2 * Copyright (c) 2011 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 43 43 #include <stroke.h> 44 44 45 static void stty_ctl_parse_scancode(int scancode);46 static int stty_ctl_init(kbd_ port_ops_t *kbd_port);47 static void stty_ctl_set_ind(unsigned mods);45 static void stty_ctl_parse_scancode(int); 46 static int stty_ctl_init(kbd_dev_t *); 47 static void stty_ctl_set_ind(unsigned); 48 48 49 49 kbd_ctl_ops_t stty_ctl = { … … 52 52 .set_ind = stty_ctl_set_ind 53 53 }; 54 55 static kbd_dev_t *kbd_dev; 54 56 55 57 /** Scancode parser */ … … 217 219 }; 218 220 219 static int stty_ctl_init(kbd_ port_ops_t *kbd_port)221 static int stty_ctl_init(kbd_dev_t *kdev) 220 222 { 221 (void) kbd_port;223 kbd_dev = kdev; 222 224 ds = 0; 223 225 … … 232 234 ds = gsp_step(&sp, ds, scancode, &mods, &key); 233 235 if (key != 0) { 234 stroke_sim( mods, key);236 stroke_sim(kbd_dev, mods, key); 235 237 } 236 238 }
Note:
See TracChangeset
for help on using the changeset viewer.