summaryrefslogtreecommitdiff
path: root/textscreen/txt_main.h
diff options
context:
space:
mode:
authorSimon Howard2007-07-29 23:41:12 +0000
committerSimon Howard2007-07-29 23:41:12 +0000
commite4681dd485de5a393070e3fcb91505116405cc1d (patch)
tree63443c3d1671a6e3febfac62c20092917c32d034 /textscreen/txt_main.h
parentb361695b7aa13dc89149e7394e273b204394ef79 (diff)
downloadchocolate-doom-e4681dd485de5a393070e3fcb91505116405cc1d.tar.gz
chocolate-doom-e4681dd485de5a393070e3fcb91505116405cc1d.tar.bz2
chocolate-doom-e4681dd485de5a393070e3fcb91505116405cc1d.zip
Allow more than the standard three mouse buttons to be defined through
setup (hopefully) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 939
Diffstat (limited to 'textscreen/txt_main.h')
-rw-r--r--textscreen/txt_main.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/textscreen/txt_main.h b/textscreen/txt_main.h
index 7978c8b7..4357d656 100644
--- a/textscreen/txt_main.h
+++ b/textscreen/txt_main.h
@@ -33,10 +33,12 @@
#include "txt_sdl.h"
// Special keypress values that correspond to mouse button clicks
-//
-#define TXT_MOUSE_LEFT 1
-#define TXT_MOUSE_RIGHT 2
-#define TXT_MOUSE_MIDDLE 3
+
+#define TXT_MOUSE_BASE 0x10000
+#define TXT_MOUSE_LEFT (TXT_MOUSE_BASE + 0)
+#define TXT_MOUSE_RIGHT (TXT_MOUSE_BASE + 1)
+#define TXT_MOUSE_MIDDLE (TXT_MOUSE_BASE + 2)
+#define TXT_MAX_MOUSE_BUTTONS 16
// Screen size