summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-06-22 15:27:05 +0100
committerDaniel Stone <daniel@fooishbar.org>2012-06-22 15:27:05 +0100
commit8e2c66e9ea2f0c1302b943fe63212614b1a46e60 (patch)
treefa0d8d47908cbd3ca901838c17759d70838ce97d /include
parentfe89d031548b815e57aaef462354e6c400287de5 (diff)
downloadxorg-lib-libxkbcommon-8e2c66e9ea2f0c1302b943fe63212614b1a46e60.tar.gz
Add xkb_key_repeats
Does what it says on the box. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'include')
-rw-r--r--include/xkbcommon/xkbcommon.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -367,6 +367,12 @@ 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.
*/
xkb_led_index_t