aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/eventman.cpp
diff options
context:
space:
mode:
authorStrangerke2015-12-19 12:13:25 +0100
committerWillem Jan Palenstijn2015-12-23 21:35:30 +0100
commit164b9d5a6674e3d8285a4277d2868030c4bb2cf1 (patch)
tree660d74cc09eb9ec2dba929abb60d78f9969893a5 /engines/lab/eventman.cpp
parentdf1376983d9181a5b08011bf3b5b4d8684d06b38 (diff)
downloadscummvm-rg350-164b9d5a6674e3d8285a4277d2868030c4bb2cf1.tar.gz
scummvm-rg350-164b9d5a6674e3d8285a4277d2868030c4bb2cf1.tar.bz2
scummvm-rg350-164b9d5a6674e3d8285a4277d2868030c4bb2cf1.zip
LAB: Use Common:KeyCode in keyPress() and getNextChar()
Diffstat (limited to 'engines/lab/eventman.cpp')
-rw-r--r--engines/lab/eventman.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lab/eventman.cpp b/engines/lab/eventman.cpp
index 7f0ddb8e18..000aaa7cb6 100644
--- a/engines/lab/eventman.cpp
+++ b/engines/lab/eventman.cpp
@@ -211,7 +211,7 @@ void EventManager::setMousePos(Common::Point pos) {
/**
* Checks whether or not a key has been pressed.
*/
-bool EventManager::keyPress(uint16 *keyCode) {
+bool EventManager::keyPress(Common::KeyCode *keyCode) {
if (haveNextChar()) {
*keyCode = getNextChar();
return true;
@@ -280,8 +280,8 @@ void EventManager::processInput() {
}
}
-uint16 EventManager::getNextChar() {
- uint16 chr = 0;
+Common::KeyCode EventManager::getNextChar() {
+ Common::KeyCode chr = Common::KEYCODE_INVALID;
processInput();
if (_nextKeyIn != _nextKeyOut) {