summaryrefslogtreecommitdiff
path: root/xkbcommon
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-09-27 23:27:49 +1000
committerDaniel Stone <daniel@fooishbar.org>2012-09-27 23:27:49 +1000
commit5aaf65b74e4c165707d6bb967ce9627a1a808568 (patch)
treeeeb7ede5a9ee3021f7c2d5934b42afd2a76b8d39 /xkbcommon
parent29a8b1ceaca1f4c3d175cb23d2fbc57a5e00ed2f (diff)
Add xkb_state_key_get_one_sym
The trivial wrapper around xkb_state_key_get_syms that every user to date has implemented. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'xkbcommon')
-rw-r--r--xkbcommon/xkbcommon.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/xkbcommon/xkbcommon.h b/xkbcommon/xkbcommon.h
index 1049ca5..a6b0fa8 100644
--- a/xkbcommon/xkbcommon.h
+++ b/xkbcommon/xkbcommon.h
@@ -725,6 +725,13 @@ xkb_state_key_get_syms(struct xkb_state *state, xkb_keycode_t key,
const xkb_keysym_t **syms_out);
/**
+ * As with xkb_state_key_get_syms, but either returns exactly keysym, or
+ * XKB_KEY_NoSymbol if there are either zero or more than one symbols.
+ */
+xkb_keysym_t
+xkb_state_key_get_one_sym(struct xkb_state *state, xkb_keycode_t key);
+
+/**
* Returns the layout number that would be active for a particular key with
* the given state.
*/