summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-08-19 17:30:54 -0400
committerpommicket <pommicket@gmail.com>2022-08-19 17:30:54 -0400
commitb37150e7ae111808be79714eba52dad34b975689 (patch)
tree9501f5cbfaa1535e35bd71f1a7d4f72c0121dba6 /ted.h
parent81e1801ef0d61fe4e29db8b352b1fadff75503fb (diff)
X1/X2 commands
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index 30358a4..0eb0786 100644
--- a/ted.h
+++ b/ted.h
@@ -113,7 +113,9 @@ ENUM_U8 {
#define SYNTAX_LINK SYNTAX_CONSTANT // for markdown
-#define SCANCODE_COUNT 0x120 // SDL scancodes should be less than this value.
+#define SCANCODE_MOUSE_X1 (SDL_NUM_SCANCODES)
+#define SCANCODE_MOUSE_X2 (SDL_NUM_SCANCODES+1)
+#define SCANCODE_COUNT (SDL_NUM_SCANCODES+2)
// a "key combo" is some subset of {control, shift, alt} + some key.
#define KEY_COMBO_COUNT (SCANCODE_COUNT << 3)
#define KEY_MODIFIER_CTRL_BIT 0