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_window.c | |
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_window.c')
-rw-r--r-- | textscreen/txt_window.c | 4 |
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; |