aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-23 15:28:49 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-23 15:28:49 -0400
commit1ac0c8cd47f734809c20bf6a6a0a7278680ed597 (patch)
treec15286165247ae28a192f66aa5886f1d956c5b07 /include
parent663f53b22a0d97a300345090a92b8567b6a0af82 (diff)
Refactor keyboard to consider modified keysyms
Press Shift Press 0 # Reads as ')' Release Shift Release 0 # Reads as '0' but we now recognize it as the same
Diffstat (limited to 'include')
-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 04fde42d..29064fd0 100644
--- a/include/input_state.h
+++ b/include/input_state.h
@@ -6,16 +6,14 @@
/* Keyboard state */
-typedef uint32_t keycode;
-
// returns true if key has been pressed, otherwise false
-bool check_key(keycode key);
+bool check_key(uint32_t key_sym, uint32_t key_code);
// sets a key as pressed
-void press_key(keycode key);
+void press_key(uint32_t key_sym, uint32_t key_code);
// unsets a key as pressed
-void release_key(keycode key);
+void release_key(uint32_t key_sym, uint32_t key_code);
/* Pointer state */