diff options
author | Simon Howard | 2007-07-29 23:41:12 +0000 |
---|---|---|
committer | Simon Howard | 2007-07-29 23:41:12 +0000 |
commit | e4681dd485de5a393070e3fcb91505116405cc1d (patch) | |
tree | 63443c3d1671a6e3febfac62c20092917c32d034 /textscreen/txt_main.h | |
parent | b361695b7aa13dc89149e7394e273b204394ef79 (diff) | |
download | chocolate-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.h | 10 |
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 |