From 1e49f9371f39475be7d2a3a9be2994ce5d27870b Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 18 Jan 2019 10:23:41 +0100 Subject: abstract away some kbd details --- kbd.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kbd.h') diff --git a/kbd.h b/kbd.h index 86aec75..10d09f9 100644 --- a/kbd.h +++ b/kbd.h @@ -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); -- cgit