Rev 4223 | Rev 4311 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4223 | Rev 4228 | ||
|---|---|---|---|
| Line 138... | Line 138... | ||
| 138 | indev_t *in = (indev_t *) arg; |
138 | indev_t *in = (indev_t *) arg; |
| 139 | 139 | ||
| 140 | while (true) { |
140 | while (true) { |
| 141 | wchar_t sc = _getc(in); |
141 | wchar_t sc = _getc(in); |
| 142 | 142 | ||
| 143 | if ((sc == IGNORE_CODE) || (sc >= SCANCODES)) |
143 | if (sc == IGNORE_CODE) |
| 144 | continue; |
144 | continue; |
| 145 | 145 | ||
| 146 | if (sc & KEY_RELEASE) |
146 | if (sc & KEY_RELEASE) |
| 147 | key_released(sc ^ KEY_RELEASE); |
147 | key_released((sc ^ KEY_RELEASE) & 0x7f); |
| 148 | else |
148 | else |
| 149 | key_pressed(sc); |
149 | key_pressed(sc & 0x7f); |
| 150 | } |
150 | } |
| 151 | } |
151 | } |
| 152 | 152 | ||
| 153 | void kbrd_init(indev_t *devin) |
153 | void kbrd_init(indev_t *devin) |
| 154 | { |
154 | { |