summaryrefslogtreecommitdiff
path: root/textscreen/txt_window.c
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_window.c
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_window.c')
-rw-r--r--textscreen/txt_window.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index 7a965d27..33f53d4a 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -390,9 +390,7 @@ void TXT_WindowKeyPress(txt_window_t *window, int c)
// Is this a mouse button ?
- if (c == TXT_MOUSE_LEFT
- || c == TXT_MOUSE_MIDDLE
- || c == TXT_MOUSE_RIGHT)
+ if (c >= TXT_MOUSE_BASE && c < TXT_MOUSE_BASE + TXT_MAX_MOUSE_BUTTONS)
{
MouseButtonPress(window, c);
return;