aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/control.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword1/control.h')
-rw-r--r--engines/sword1/control.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sword1/control.h b/engines/sword1/control.h
index 89ea7199b6..1825350170 100644
--- a/engines/sword1/control.h
+++ b/engines/sword1/control.h
@@ -27,6 +27,7 @@
#define SWORD1_CONTROL_H
#include "common/scummsys.h"
+#include "common/events.h"
#include "sword1/sworddefs.h"
class OSystem;
@@ -118,8 +119,8 @@ private:
void saveNameSelect(uint8 id, bool saving);
bool saveToFile(void);
bool restoreFromFile(void);
- bool keyAccepted(uint8 key);
- void handleSaveKey(uint8 key);
+ bool keyAccepted(uint16 ascii);
+ void handleSaveKey(Common::KeyState kbd);
void renderVolumeBar(uint8 id, uint8 volL, uint8 volR);
uint16 getTextWidth(const uint8 *str);
@@ -141,7 +142,7 @@ private:
Sound *_sound;
uint8 *_font, *_redFont;
uint8 *_screenBuf;
- uint8 _keyPressed;
+ Common::KeyState _keyPressed;
void delay(uint32 msecs);
uint16 _mouseX, _mouseY, _mouseState;
bool _mouseDown;