Rev 508 | Rev 511 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 508 | Rev 509 | ||
---|---|---|---|
Line 51... | Line 51... | ||
51 | #define PRESSED_CAPSLOCK (1<<1) |
51 | #define PRESSED_CAPSLOCK (1<<1) |
52 | #define LOCKED_CAPSLOCK (1<<0) |
52 | #define LOCKED_CAPSLOCK (1<<0) |
53 | 53 | ||
54 | static spinlock_t keylock; /**< keylock protects keyflags and lockflags. */ |
54 | static spinlock_t keylock; /**< keylock protects keyflags and lockflags. */ |
55 | static volatile int keyflags; /**< Tracking of multiple keypresses. */ |
55 | static volatile int keyflags; /**< Tracking of multiple keypresses. */ |
56 | static volatile int lockflags; /**< Tracking of multiple lock keys keypresses. */ |
56 | static volatile int lockflags; /**< Tracking of multiple keys lockings. */ |
57 | 57 | ||
58 | /** Primary meaning of scancodes. */ |
58 | /** Primary meaning of scancodes. */ |
59 | static char sc_primary_map[] = { |
59 | static char sc_primary_map[] = { |
60 | SPECIAL, /* 0x00 */ |
60 | SPECIAL, /* 0x00 */ |
61 | SPECIAL, /* 0x01 - Esc */ |
61 | SPECIAL, /* 0x01 - Esc */ |