From e4681dd485de5a393070e3fcb91505116405cc1d Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 29 Jul 2007 23:41:12 +0000 Subject: Allow more than the standard three mouse buttons to be defined through setup (hopefully) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 939 --- textscreen/txt_window.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'textscreen/txt_window.c') 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; -- cgit v1.2.3