aboutsummaryrefslogtreecommitdiffstats
path: root/include/input_state.h
diff options
context:
space:
mode:
authorLibravatar taiyu <taiyu.len@gmail.com>2015-08-23 12:34:18 -0700
committerLibravatar taiyu <taiyu.len@gmail.com>2015-08-23 12:34:18 -0700
commit51ab3c918030565cefbb82dc8e899f324e6c5a21 (patch)
tree1a9e633ead0ff50f55987310621dab39531d2305 /include/input_state.h
parentstyle (diff)
parentRefactor keyboard to consider modified keysyms (diff)
downloadsway-51ab3c918030565cefbb82dc8e899f324e6c5a21.tar.gz
sway-51ab3c918030565cefbb82dc8e899f324e6c5a21.tar.zst
sway-51ab3c918030565cefbb82dc8e899f324e6c5a21.zip
merge
Diffstat (limited to 'include/input_state.h')
-rw-r--r--include/input_state.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/input_state.h b/include/input_state.h
index 4ab93cd6..d87ae18c 100644
--- a/include/input_state.h
+++ b/include/input_state.h
@@ -6,16 +6,14 @@
6 6
7/* Keyboard state */ 7/* Keyboard state */
8 8
9typedef uint32_t keycode;
10
11// returns true if key has been pressed, otherwise false 9// returns true if key has been pressed, otherwise false
12bool check_key(keycode key); 10bool check_key(uint32_t key_sym, uint32_t key_code);
13 11
14// sets a key as pressed 12// sets a key as pressed
15void press_key(keycode key); 13void press_key(uint32_t key_sym, uint32_t key_code);
16 14
17// unsets a key as pressed 15// unsets a key as pressed
18void release_key(keycode key); 16void release_key(uint32_t key_sym, uint32_t key_code);
19 17
20 18
21/* Pointer state */ 19/* Pointer state */