aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichieSams2013-09-15 14:09:42 -0500
committerRichieSams2013-09-15 15:00:42 -0500
commit8ba295d7103322a5193cc051da81ae82ccf5947b (patch)
tree70f7fc94892375273dd562124bb8eb7c0fbf7d76
parent0eeeeded920d50444b0e8ca865725231dffb0961 (diff)
downloadscummvm-rg350-8ba295d7103322a5193cc051da81ae82ccf5947b.tar.gz
scummvm-rg350-8ba295d7103322a5193cc051da81ae82ccf5947b.tar.bz2
scummvm-rg350-8ba295d7103322a5193cc051da81ae82ccf5947b.zip
ZVISION: Add key press support to the main event loop
-rw-r--r--engines/zvision/events.cpp10
-rw-r--r--engines/zvision/zvision.h1
2 files changed, 4 insertions, 7 deletions
diff --git a/engines/zvision/events.cpp b/engines/zvision/events.cpp
index ae84a22d39..1b6b2c2508 100644
--- a/engines/zvision/events.cpp
+++ b/engines/zvision/events.cpp
@@ -71,9 +71,11 @@ void ZVision::processEvents() {
break;
}
- onKeyDown(_event.kbd.keycode);
+ _scriptManager->onKeyDown(_event.kbd);
+ break;
+ case Common::EVENT_KEYUP:
+ _scriptManager->onKeyUp(_event.kbd);
break;
-
default:
break;
}
@@ -177,8 +179,4 @@ void ZVision::onMouseMove(const Common::Point &pos) {
}
}
-void ZVision::onKeyDown(uint keyCode) {
-
-}
-
} // End of namespace ZVision
diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h
index 2e5359b10b..94bcfdf171 100644
--- a/engines/zvision/zvision.h
+++ b/engines/zvision/zvision.h
@@ -146,7 +146,6 @@ private:
void onMouseDown(const Common::Point &pos);
void onMouseUp(const Common::Point &pos);
void onMouseMove(const Common::Point &pos);
- void onKeyDown(uint keyCode);
};
} // End of namespace ZVision