aboutsummaryrefslogtreecommitdiff
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-08-25 00:32:25 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-08-25 00:32:25 +0100
commita9b4be7e4a75a8e3d7041cedc99cb808d1da5e1d (patch)
treeade8de9ba6335b11a544a740b51764c790df6721 /src/keyboard.h
parent1eb634953f018e45aeafde619141c635cd14502c (diff)
downloadimv-a9b4be7e4a75a8e3d7041cedc99cb808d1da5e1d.tar.gz
wl_window: Implement key repeating
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h3
1 files changed, 3 insertions, 0 deletions
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