From 8e2c66e9ea2f0c1302b943fe63212614b1a46e60 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 22 Jun 2012 15:27:05 +0100 Subject: Add xkb_key_repeats Does what it says on the box. Signed-off-by: Daniel Stone --- include/xkbcommon/xkbcommon.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/xkbcommon/xkbcommon.h b/include/xkbcommon/xkbcommon.h index 4c148d5..31d0dcf 100644 --- a/include/xkbcommon/xkbcommon.h +++ b/include/xkbcommon/xkbcommon.h @@ -366,6 +366,12 @@ xkb_map_group_get_index(struct xkb_keymap *keymap, const char *name); xkb_group_index_t xkb_key_num_groups(struct xkb_keymap *keymap, xkb_keycode_t key); +/** + * Returns 1 if the key should repeat, or 0 otherwise. + */ +int +xkb_key_repeats(struct xkb_keymap *keymap, xkb_keycode_t key); + /** * Returns the number of LEDs in the given map. */ -- cgit v1.2.1