aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/util.h
diff options
context:
space:
mode:
authorSven Hesse2007-06-23 17:00:27 +0000
committerSven Hesse2007-06-23 17:00:27 +0000
commit8953674a2f7d29cae0bcc5a3f8f42fae4db0ea81 (patch)
tree3e2aec869bca0fa2dceae836c9e4d7badd1d5bbb /engines/gob/util.h
parent1665d158f4a09a57c33bdfe742394a76d310e69a (diff)
downloadscummvm-rg350-8953674a2f7d29cae0bcc5a3f8f42fae4db0ea81.tar.gz
scummvm-rg350-8953674a2f7d29cae0bcc5a3f8f42fae4db0ea81.tar.bz2
scummvm-rg350-8953674a2f7d29cae0bcc5a3f8f42fae4db0ea81.zip
Fixed the FIXME (by making Util::_keyBuffer an array of Common::KeyState)
svn-id: r27679
Diffstat (limited to 'engines/gob/util.h')
-rw-r--r--engines/gob/util.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/gob/util.h b/engines/gob/util.h
index 09fe668518..2cc0547a20 100644
--- a/engines/gob/util.h
+++ b/engines/gob/util.h
@@ -26,6 +26,8 @@
#ifndef GOB_UTIL_H
#define GOB_UTIL_H
+#include "common/keyboard.h"
+
#include "gob/video.h"
namespace Gob {
@@ -90,7 +92,7 @@ public:
protected:
int16 _mouseButtons;
- int16 _keyBuffer[KEYBUFSIZE];
+ Common::KeyState _keyBuffer[KEYBUFSIZE];
int16 _keyBufferHead;
int16 _keyBufferTail;
@@ -99,9 +101,9 @@ protected:
GobEngine *_vm;
bool keyBufferEmpty();
- void addKeyToBuffer(int16 key);
- bool getKeyFromBuffer(int16& key);
- int16 translateKey(int16 key);
+ void addKeyToBuffer(const Common::KeyState &key);
+ bool getKeyFromBuffer(Common::KeyState &key);
+ int16 translateKey(const Common::KeyState &key);
void checkJoystick();
};