Rev 4055 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4055 | Rev 4296 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef LIBC_KBD_H_ |
35 | #ifndef LIBC_KBD_H_ |
36 | #define LIBC_KBD_H_ |
36 | #define LIBC_KBD_H_ |
37 | 37 | ||
- | 38 | #include <sys/types.h> |
|
- | 39 | ||
38 | typedef enum kbd_ev_type { |
40 | typedef enum kbd_ev_type { |
39 | KE_PRESS, |
41 | KE_PRESS, |
40 | KE_RELEASE |
42 | KE_RELEASE |
41 | } kbd_ev_type_t; |
43 | } kbd_ev_type_t; |
42 | 44 | ||
Line 50... | Line 52... | ||
50 | 52 | ||
51 | /** Bitmask of modifiers held. */ |
53 | /** Bitmask of modifiers held. */ |
52 | unsigned int mods; |
54 | unsigned int mods; |
53 | 55 | ||
54 | /** The character that was generated or '\0' for none. */ |
56 | /** The character that was generated or '\0' for none. */ |
55 | char c; |
57 | wchar_t c; |
56 | } kbd_event_t; |
58 | } kbd_event_t; |
57 | 59 | ||
58 | extern int kbd_get_event(kbd_event_t *); |
60 | extern int kbd_get_event(kbd_event_t *); |
59 | 61 | ||
60 | #endif |
62 | #endif |