aboutsummaryrefslogtreecommitdiff
path: root/sword1/control.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/control.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/control.h')
-rw-r--r--sword1/control.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sword1/control.h b/sword1/control.h
index ace9c3b14e..0c111cd469 100644
--- a/sword1/control.h
+++ b/sword1/control.h
@@ -88,6 +88,8 @@ private:
uint8 _selectedSavegame;
uint8 _saveNames[64][32];
uint8 _oldName[32];
+ uint8 _cursorTick;
+ bool _cursorVisible;
uint8 getClicks(uint8 mode, uint8 *retVal);
uint8 handleButtonClick(uint8 id, uint8 mode, uint8 *retVal);