From a9b4be7e4a75a8e3d7041cedc99cb808d1da5e1d Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sun, 25 Aug 2019 00:32:25 +0100 Subject: wl_window: Implement key repeating --- src/keyboard.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/keyboard.h') diff --git a/src/keyboard.h b/src/keyboard.h index 05036c4..cba806b 100644 --- a/src/keyboard.h +++ b/src/keyboard.h @@ -31,4 +31,7 @@ size_t imv_keyboard_get_text(struct imv_keyboard *keyboard, int scancode, char * /* Initialise the keymap from a string containing the description */ void imv_keyboard_set_keymap(struct imv_keyboard *keyboard, const char *keymap); +/* Should the key on a given scancode repeat when held down */ +bool imv_keyboard_should_key_repeat(struct imv_keyboard *keyboard, int scancode); + #endif -- cgit v1.2.3