aboutsummaryrefslogtreecommitdiffstats
path: root/include/input_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/input_state.h')
-rw-r--r--include/input_state.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/input_state.h b/include/input_state.h
index 79e27d91..903301fb 100644
--- a/include/input_state.h
+++ b/include/input_state.h
@@ -9,6 +9,9 @@
9// returns true if key has been pressed, otherwise false 9// returns true if key has been pressed, otherwise false
10bool check_key(uint32_t key_sym, uint32_t key_code); 10bool check_key(uint32_t key_sym, uint32_t key_code);
11 11
12// returns true if key_sym matches latest released key.
13bool check_released_key(uint32_t key_sym);
14
12// sets a key as pressed 15// sets a key as pressed
13void press_key(uint32_t key_sym, uint32_t key_code); 16void press_key(uint32_t key_sym, uint32_t key_code);
14 17