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