aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/events.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/events.h')
-rw-r--r--engines/mads/events.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mads/events.h b/engines/mads/events.h
index 870d6e03b8..21ef37407b 100644
--- a/engines/mads/events.h
+++ b/engines/mads/events.h
@@ -70,7 +70,7 @@ public:
int _vD2;
int _mouseStatusCopy;
bool _mouseMoved;
- Common::Stack<Common::Event> _pendingKeys;
+ Common::Stack<Common::KeyState> _pendingKeys;
public:
/**
* Constructor
@@ -168,6 +168,8 @@ public:
* Returns true if there's any pending keys to be processed
*/
bool isKeyPressed() const { return !_pendingKeys.empty(); }
+
+ Common::KeyState getKey() { return _pendingKeys.pop(); }
};
} // End of namespace MADS