aboutsummaryrefslogtreecommitdiff
path: root/sword1/mouse.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-05-12 06:21:44 +0000
committerTorbjörn Andersson2004-05-12 06:21:44 +0000
commitd40de10534c5f69c9aa49a9fcffe1d6e6dca7d88 (patch)
tree8d5df2bf9c854cc918acf1aec3cac83ba020e9b7 /sword1/mouse.h
parent576e2986dd2453bc46567a40a4f84df369a3cfcd (diff)
downloadscummvm-rg350-d40de10534c5f69c9aa49a9fcffe1d6e6dca7d88.tar.gz
scummvm-rg350-d40de10534c5f69c9aa49a9fcffe1d6e6dca7d88.tar.bz2
scummvm-rg350-d40de10534c5f69c9aa49a9fcffe1d6e6dca7d88.zip
Some usability fixes to the control panel code:
* Draw a blinking cursor when typing savegame names. (Bug #908679) * Number the savegame slots. At the moment they are numbered differently than in BS2 in that they start on 1 instead of 0. As far as I recall, this was the case with the original engine as well, but we may want to reconsider. * Added scroll wheel support. This wasn't in the original, but it's a nice thing to have. Particularly since the scroll buttons don't repeat. (It would be nice if they did.) I would like this patch to be considered for 0.6.1, if there aren't any obvious problems with it. svn-id: r13833
Diffstat (limited to 'sword1/mouse.h')
-rw-r--r--sword1/mouse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sword1/mouse.h b/sword1/mouse.h
index 443698473e..059dd41909 100644
--- a/sword1/mouse.h
+++ b/sword1/mouse.h
@@ -36,6 +36,8 @@ namespace Sword1 {
#define BS1L_BUTTON_UP 4
#define BS1R_BUTTON_DOWN 8
#define BS1R_BUTTON_UP 16
+#define BS1_WHEEL_UP 32
+#define BS1_WHEEL_DOWN 64
#define MOUSE_BOTH_BUTTONS (BS1L_BUTTON_DOWN | BS1R_BUTTON_DOWN)
#define MOUSE_DOWN_MASK (BS1L_BUTTON_DOWN | BS1R_BUTTON_DOWN)
#define MOUSE_UP_MASK (BS1L_BUTTON_UP | BS1R_BUTTON_UP)