Rev 4581 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4581 | Rev 4718 | ||
---|---|---|---|
Line 205... | Line 205... | ||
205 | break; |
205 | break; |
206 | case ds_e: |
206 | case ds_e: |
207 | map = scanmap_e0; |
207 | map = scanmap_e0; |
208 | map_length = sizeof(scanmap_e0) / sizeof(int); |
208 | map_length = sizeof(scanmap_e0) / sizeof(int); |
209 | break; |
209 | break; |
- | 210 | default: |
|
- | 211 | map = NULL; |
|
- | 212 | map_length = 0; |
|
210 | } |
213 | } |
211 | 214 | ||
212 | ds = ds_s; |
215 | ds = ds_s; |
213 | 216 | ||
214 | if (scancode & 0x80) { |
217 | if (scancode & 0x80) { |
Line 216... | Line 219... | ||
216 | type = KEY_RELEASE; |
219 | type = KEY_RELEASE; |
217 | } else { |
220 | } else { |
218 | type = KEY_PRESS; |
221 | type = KEY_PRESS; |
219 | } |
222 | } |
220 | 223 | ||
221 | if (scancode < 0 || scancode >= map_length) |
224 | if ((scancode < 0) || ((size_t) scancode >= map_length)) |
222 | return; |
225 | return; |
223 | 226 | ||
224 | key = map[scancode]; |
227 | key = map[scancode]; |
225 | if (key != 0) |
228 | if (key != 0) |
226 | kbd_push_ev(type, key); |
229 | kbd_push_ev(type, key); |