summaryrefslogtreecommitdiff
path: root/ted-base.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-30 13:49:01 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-30 13:49:01 -0500
commit3d56cc1986f855f91844915e35d0225bd8e07109 (patch)
tree0ab06288e6a4d699b55b68931487e5a6ab889c3f /ted-base.c
parentf10f07553e599f1320afbaa2dfeb0b267139cd74 (diff)
more config
Diffstat (limited to 'ted-base.c')
-rw-r--r--ted-base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ted-base.c b/ted-base.c
index 5ed6469..28e7d4e 100644
--- a/ted-base.c
+++ b/ted-base.c
@@ -6,6 +6,10 @@ typedef struct {
#define SCANCODE_COUNT 0x120 // SDL scancodes should be less than this value.
// a "key combo" is some subset of {control, shift, alt} + some key.
#define KEY_COMBO_COUNT (SCANCODE_COUNT << 3)
+#define KEY_MODIFIER_CTRL 1
+#define KEY_MODIFIER_SHIFT 2
+#define KEY_MODIFIER_ALT 4
+// ctrl+alt+c is encoded as SDL_SCANCODE_C << 3 | KEY_MODIFIER_CTRL | KEY_MODIFIER_ALT
typedef struct {
TextBuffer *active_buffer;