Rev 6612 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6612 | Rev 8581 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | #include "kos32sys.h" |
18 | #include "kos32sys.h" |
19 | #include "kolibri_gui.h" |
19 | #include "kolibri_gui.h" |
Line 20... | Line 20... | ||
20 | 20 | ||
21 | #define SCAN_CODE_ALTM 50 |
21 | #define SCAN_CODE_ALTM 50 |
22 | #define SCAN_CODE_ALTE 18 |
22 | #define SCAN_CODE_ALTE 18 |
23 | inline |
23 | |
24 | uint32_t get_os_keyb_modifiers() |
24 | static inline uint32_t get_os_keyb_modifiers() |
25 | { |
25 | { |
26 | register uint32_t val; |
26 | register uint32_t val; |
27 | __asm__ __volatile__( |
27 | __asm__ __volatile__( |
28 | "int $0x40" |
28 | "int $0x40" |
Line 41... | Line 41... | ||
41 | #define KEY_NUMLOCK 0x80 |
41 | #define KEY_NUMLOCK 0x80 |
42 | #define KEY_SCROLLLOCK 0x100 |
42 | #define KEY_SCROLLLOCK 0x100 |
43 | #define KEY_LWIN 0x200 |
43 | #define KEY_LWIN 0x200 |
44 | #define KEY_RWIN 0x400 |
44 | #define KEY_RWIN 0x400 |
Line 45... | Line -... | ||
45 | - | ||
46 | inline |
45 | |
47 | void set_os_keyb_mode(int mode) |
46 | static inline void set_os_keyb_mode(int mode) |
48 | // 0 - ASCII, 1 - SCAN |
47 | // 0 - ASCII, 1 - SCAN |
49 | { |
48 | { |
50 | __asm__ __volatile__( |
49 | __asm__ __volatile__( |
51 | "int $0x40" |
50 | "int $0x40" |