aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-21 18:10:08 -0400
committerMatthew Hoops2011-09-21 18:10:08 -0400
commit185f5fb05406f29650452c7d3915c4bbfb350684 (patch)
treec1c0f85a7a60b4a83543d49330aabf7f90e399a6
parentf9fff1809ce8f40706ded0f00b159e96b1989274 (diff)
downloadscummvm-rg350-185f5fb05406f29650452c7d3915c4bbfb350684.tar.gz
scummvm-rg350-185f5fb05406f29650452c7d3915c4bbfb350684.tar.bz2
scummvm-rg350-185f5fb05406f29650452c7d3915c4bbfb350684.zip
PEGASUS: Only allow for keydown events
-rwxr-xr-xengines/pegasus/input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/input.cpp b/engines/pegasus/input.cpp
index 5ef1a14f82..4b1a8e4c50 100755
--- a/engines/pegasus/input.cpp
+++ b/engines/pegasus/input.cpp
@@ -46,10 +46,10 @@ void InputDevice::getInput(Input &input, const tInputBits filter) {
Common::Event event;
while (g_system->getEventManager()->pollEvent(event)) {
- // We only care about two events here
+ // We only care about key down here
// We're mapping from ScummVM events to pegasus events, which
// are based on pippin events.
- if (event.type == Common::EVENT_KEYDOWN || event.type == Common::EVENT_KEYUP) {
+ if (event.type == Common::EVENT_KEYDOWN) {
switch (event.kbd.keycode) {
case Common::KEYCODE_UP:
case Common::KEYCODE_KP8: