diff options
author | Matthew Hoops | 2011-09-21 18:10:08 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-09-21 18:10:08 -0400 |
commit | 185f5fb05406f29650452c7d3915c4bbfb350684 (patch) | |
tree | c1c0f85a7a60b4a83543d49330aabf7f90e399a6 | |
parent | f9fff1809ce8f40706ded0f00b159e96b1989274 (diff) | |
download | scummvm-rg350-185f5fb05406f29650452c7d3915c4bbfb350684.tar.gz scummvm-rg350-185f5fb05406f29650452c7d3915c4bbfb350684.tar.bz2 scummvm-rg350-185f5fb05406f29650452c7d3915c4bbfb350684.zip |
PEGASUS: Only allow for keydown events
-rwxr-xr-x | engines/pegasus/input.cpp | 4 |
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: |