Rev 512 | Rev 532 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 512 | Rev 517 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #include <print.h> |
35 | #include <print.h> |
36 | #include <synch/spinlock.h> |
36 | #include <synch/spinlock.h> |
37 | #include <typedefs.h> |
37 | #include <typedefs.h> |
38 | #include <console/chardev.h> |
38 | #include <console/chardev.h> |
39 | #include <console/console.h> |
39 | #include <console/console.h> |
- | 40 | #include <macros.h> |
|
40 | 41 | ||
41 | /** |
42 | /** |
42 | * i8042 processor driver. |
43 | * i8042 processor driver. |
43 | * It takes care of low-level keyboard functions. |
44 | * It takes care of low-level keyboard functions. |
44 | */ |
45 | */ |
Line 305... | Line 306... | ||
305 | break; |
306 | break; |
306 | case SC_CAPSLOCK: |
307 | case SC_CAPSLOCK: |
307 | keyflags |= PRESSED_CAPSLOCK; |
308 | keyflags |= PRESSED_CAPSLOCK; |
308 | break; |
309 | break; |
309 | default: |
310 | default: |
310 | letter = (ascii >= 'a') && (ascii <= 'z'); |
311 | letter = is_lower(ascii); |
311 | capslock = (keyflags & PRESSED_CAPSLOCK) || (lockflags & LOCKED_CAPSLOCK); |
312 | capslock = (keyflags & PRESSED_CAPSLOCK) || (lockflags & LOCKED_CAPSLOCK); |
312 | shift = keyflags & PRESSED_SHIFT; |
313 | shift = keyflags & PRESSED_SHIFT; |
313 | if (letter && capslock) |
314 | if (letter && capslock) |
314 | shift = !shift; |
315 | shift = !shift; |
315 | if (shift) |
316 | if (shift) |