summaryrefslogtreecommitdiff
path: root/textscreen/txt_main.h
diff options
context:
space:
mode:
authorSimon Howard2011-03-22 21:08:04 +0000
committerSimon Howard2011-03-22 21:08:04 +0000
commitbc087b49e2e5a9c00b5b1620b4bd289ebee5ee73 (patch)
treec4cf83e6a43c05f9292a26de2e2d70d5d9a57307 /textscreen/txt_main.h
parent7093b65c7d3aa88e6fcaaf2994e76db27d8c31aa (diff)
downloadchocolate-doom-bc087b49e2e5a9c00b5b1620b4bd289ebee5ee73.tar.gz
chocolate-doom-bc087b49e2e5a9c00b5b1620b4bd289ebee5ee73.tar.bz2
chocolate-doom-bc087b49e2e5a9c00b5b1620b4bd289ebee5ee73.zip
Fix scrollbars so that clicks scroll the pane to a location that matches
the clicked location. Interpret mousewheel events so that scroll panes can be scrolled. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2307
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 add30fa3..601548e5 100644
--- a/textscreen/txt_main.h
+++ b/textscreen/txt_main.h
@@ -34,10 +34,12 @@
// Special keypress values that correspond to mouse button clicks
-#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_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_MOUSE_SCROLLUP (TXT_MOUSE_BASE + 3)
+#define TXT_MOUSE_SCROLLDOWN (TXT_MOUSE_BASE + 4)
#define TXT_MAX_MOUSE_BUTTONS 16
// Screen size