diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-19 20:22:15 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-19 20:22:15 -0700 |
commit | 5ff0619ca1cab044004df044c253c9170b8316c3 (patch) | |
tree | 7872a66e494acb90dd08ffc76665557b0e0ca874 /include/key_state.h | |
parent | key_state.ch, and command conflicts resolved (diff) | |
download | sway-5ff0619ca1cab044004df044c253c9170b8316c3.tar.gz sway-5ff0619ca1cab044004df044c253c9170b8316c3.tar.zst sway-5ff0619ca1cab044004df044c253c9170b8316c3.zip |
input state, find_container_in_direction
Diffstat (limited to 'include/key_state.h')
-rw-r--r-- | include/key_state.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/key_state.h b/include/key_state.h deleted file mode 100644 index a8fa8d5e..00000000 --- a/include/key_state.h +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | #ifndef _SWAY_KEY_STATE_H | ||
2 | #define _SWAY_KEY_STATE_H | ||
3 | #include <stdbool.h> | ||
4 | #include <stdint.h> | ||
5 | |||
6 | typedef uint32_t keycode; | ||
7 | |||
8 | // returns true if key has been pressed, otherwise false | ||
9 | bool check_key(keycode key); | ||
10 | |||
11 | // sets a key as pressed | ||
12 | void press_key(keycode key); | ||
13 | |||
14 | // unsets a key as pressed | ||
15 | void release_key(keycode key); | ||
16 | |||
17 | #endif | ||
18 | |||