summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-18 20:54:07 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-18 20:54:07 -0500
commit8a4984e0e15fcfb0be6db242ab3f60325b80abd8 (patch)
treeb71eb3ec8e715164a9347cb6ce7d6d83298309d0 /ted.h
parent530001a433c847b40d109d08cd8ff0958efdca1c (diff)
bug fixes, narrow file list based on search term
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ted.h b/ted.h
index b0e325b..36602cf 100644
--- a/ted.h
+++ b/ted.h
@@ -19,9 +19,9 @@ typedef struct {
#define KEY_MODIFIER_CTRL_BIT 0
#define KEY_MODIFIER_SHIFT_BIT 1
#define KEY_MODIFIER_ALT_BIT 2
-#define KEY_MODIFIER_CTRL (1<<KEY_MODIFIER_CTRL_BIT)
-#define KEY_MODIFIER_SHIFT (1<<KEY_MODIFIER_SHIFT_BIT)
-#define KEY_MODIFIER_ALT (1<<KEY_MODIFIER_ALT_BIT)
+#define KEY_MODIFIER_CTRL ((u32)1<<KEY_MODIFIER_CTRL_BIT)
+#define KEY_MODIFIER_SHIFT ((u32)1<<KEY_MODIFIER_SHIFT_BIT)
+#define KEY_MODIFIER_ALT ((u32)1<<KEY_MODIFIER_ALT_BIT)
// ctrl+alt+c is encoded as SDL_SCANCODE_C << 3 | KEY_MODIFIER_CTRL | KEY_MODIFIER_ALT
typedef struct KeyAction {