Rev 3905 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3905 | Rev 4236 | ||
---|---|---|---|
Line 91... | Line 91... | ||
91 | keybuffer->items++; |
91 | keybuffer->items++; |
92 | } |
92 | } |
93 | futex_up(&keybuffer_futex); |
93 | futex_up(&keybuffer_futex); |
94 | } |
94 | } |
95 | 95 | ||
96 | void keybuffer_push0(keybuffer_t *keybuffer, int c) |
- | |
97 | { |
- | |
98 | kbd_event_t ev; |
- | |
99 | - | ||
100 | ev.key = c; ev.mods = 0; ev.c = c; |
- | |
101 | keybuffer_push(keybuffer, &ev); |
- | |
102 | } |
- | |
103 | - | ||
104 | /** Pop event from buffer. |
96 | /** Pop event from buffer. |
105 | * |
97 | * |
106 | * @param edst Pointer to where the event should be saved. |
98 | * @param edst Pointer to where the event should be saved. |
107 | * @return Zero on empty buffer, nonzero otherwise. |
99 | * @return Zero on empty buffer, nonzero otherwise. |
108 | */ |
100 | */ |