aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sherlock/events.cpp')
-rw-r--r--engines/sherlock/events.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sherlock/events.cpp b/engines/sherlock/events.cpp
index a6b3c899cb..5c94b7e1ff 100644
--- a/engines/sherlock/events.cpp
+++ b/engines/sherlock/events.cpp
@@ -192,6 +192,14 @@ void Events::clearEvents() {
}
/**
+ * Clear any pending keyboard inputs
+ */
+void Events::clearKeyboard() {
+ _pendingKeys.clear();
+}
+
+
+/**
* Delay for a given number of game frames, where each frame is 1/60th of a second
*/
void Events::wait(int numFrames) {