summaryrefslogtreecommitdiff
path: root/include/xkbcommon/xkbcommon.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2012-03-27 12:11:45 +0100
committerDaniel Stone <daniel@fooishbar.org>2012-03-27 12:18:41 +0100
commitede8473490a4fa327f168225042ea7ea4dd0d5e0 (patch)
tree1fbf30818cd2712962283649a9bec1a4d053e1d1 /include/xkbcommon/xkbcommon.h
parent7f471a702ed4e1af63c39370ea55f3fea0500cfc (diff)
downloadxorg-lib-libxkbcommon-ede8473490a4fa327f168225042ea7ea4dd0d5e0.tar.gz
Add enum xkb_key_direction instead of bool
Use XKB_KEY_UP instead of 0 and XKB_KEY_DOWN instead of 1. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reported-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'include/xkbcommon/xkbcommon.h')
-rw-r--r--include/xkbcommon/xkbcommon.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/xkbcommon/xkbcommon.h b/include/xkbcommon/xkbcommon.h
index b7259e6..7ce7d9e 100644
--- a/include/xkbcommon/xkbcommon.h
+++ b/include/xkbcommon/xkbcommon.h
@@ -716,11 +716,17 @@ xkb_state_ref(struct xkb_state *state);
_X_EXPORT void
xkb_state_unref(struct xkb_state *state);
+enum xkb_key_direction {
+ XKB_KEY_UP,
+ XKB_KEY_DOWN,
+};
+
/**
* Updates a state object to reflect the given key being pressed or released.
*/
_X_EXPORT void
-xkb_state_update_key(struct xkb_state *state, xkb_keycode_t key, int down);
+xkb_state_update_key(struct xkb_state *state, xkb_keycode_t key,
+ enum xkb_key_direction direction);
/**
* Modifier and group types for state objects. This enum is bitmaskable,