Rev 5229 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5229 | Rev 5231 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include "defines.h" |
1 | #include "defines.h" |
Line -... | Line 2... | ||
- | 2 | ||
2 | 3 | // Enable scancodes for event loop |
|
3 | inline void enable_scancode() { |
4 | inline void enable_scancode() { |
4 | __asm__ __volatile__("int $0x40"::"a"(66),"b"(1),"c"(1)); |
5 | __asm__ __volatile__("int $0x40"::"a"(66),"b"(1),"c"(1)); |
Line -... | Line 6... | ||
- | 6 | } |
|
5 | } |
7 | |
6 | 8 | // Clear key buffer |
|
7 | inline void clear_key_buffer() { |
9 | inline void clear_key_buffer() { |
8 | int i = 0; |
10 | int i = 0; |
9 | for (i = 0; i < 120; i++) |
11 | for (i = 0; i < 120; i++) |
Line -... | Line 12... | ||
- | 12 | __menuet__getkey(); |
|
10 | __menuet__getkey(); |
13 | } |
11 | } |
14 | |
12 | 15 | // Wait for screen draw (vertical sync) |