diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 10:23:41 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 11:03:55 +0100 |
commit | 1e49f9371f39475be7d2a3a9be2994ce5d27870b (patch) | |
tree | b84ba5b35e846beddca3c78b6f01d12a6d5116a7 /kbd.h | |
parent | 03c8b71a085afb2a856fcf9a6e53c0b83cd9795c (diff) | |
download | fbida-1e49f9371f39475be7d2a3a9be2994ce5d27870b.tar.gz |
abstract away some kbd details
Diffstat (limited to 'kbd.h')
-rw-r--r-- | kbd.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3,8 +3,8 @@ #define KEY_MOD_SHIFT (1 << 0) #define KEY_MOD_CTRL (1 << 1) -uint32_t kbd_parse(const char *key, uint32_t *mod); +void kbd_init(void); int kbd_wait(int timeout); - -void tty_raw(void); -void tty_restore(void); +int kbd_read(char *buf, uint32_t len, + uint32_t *keycode, uint32_t *modifier); +void kbd_fini(void); |