Rev 3943 | Rev 3978 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3943 | Rev 3944 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | /** Currently pressed lock keys. We track these to tackle autorepeat. */ |
66 | /** Currently pressed lock keys. We track these to tackle autorepeat. */ |
67 | static unsigned lock_keys; |
67 | static unsigned lock_keys; |
68 | 68 | ||
69 | void kbd_push_scancode(int scancode) |
69 | void kbd_push_scancode(int scancode) |
70 | { |
70 | { |
71 | printf("scancode: 0x%x\n", scancode); |
71 | /* printf("scancode: 0x%x\n", scancode);*/ |
72 | kbd_ctl_parse_scancode(scancode); |
72 | kbd_ctl_parse_scancode(scancode); |
73 | } |
73 | } |
74 | 74 | ||
75 | void kbd_push_ev(int type, unsigned int key) |
75 | void kbd_push_ev(int type, unsigned int key) |
76 | { |
76 | { |
Line 112... | Line 112... | ||
112 | lock_keys = lock_keys | mod_mask; |
112 | lock_keys = lock_keys | mod_mask; |
113 | } else { |
113 | } else { |
114 | lock_keys = lock_keys & ~mod_mask; |
114 | lock_keys = lock_keys & ~mod_mask; |
115 | } |
115 | } |
116 | } |
116 | } |
117 | 117 | /* |
|
118 | printf("type: %d\n", type); |
118 | printf("type: %d\n", type); |
119 | printf("mods: 0x%x\n", mods); |
119 | printf("mods: 0x%x\n", mods); |
120 | printf("keycode: %u\n", key); |
120 | printf("keycode: %u\n", key); |
121 | 121 | */ |
|
122 | ev.type = type; |
122 | ev.type = type; |
123 | ev.key = key; |
123 | ev.key = key; |
124 | ev.mods = mods; |
124 | ev.mods = mods; |
125 | 125 | ||
126 | ev.c = layout_parse_ev(&ev); |
126 | ev.c = layout_parse_ev(&ev); |