From 185f5fb05406f29650452c7d3915c4bbfb350684 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 21 Sep 2011 18:10:08 -0400 Subject: PEGASUS: Only allow for keydown events --- engines/pegasus/input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/pegasus/input.cpp') 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: -- cgit v1.2.3