From 98c94e4b24ef2e518ca2115a9839f3f5715f9ebf Mon Sep 17 00:00:00 2001 From: stephena Date: Thu, 29 Dec 2005 01:40:41 +0000 Subject: [PATCH] Found the bug wrt eventstream loading; the eventloop wasn't processing all the events for the given frame. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@933 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/emucore/EventHandler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/emucore/EventHandler.cxx b/stella/src/emucore/EventHandler.cxx index 969bc0f98..679fd9fda 100644 --- a/stella/src/emucore/EventHandler.cxx +++ b/stella/src/emucore/EventHandler.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: EventHandler.cxx,v 1.136 2005-12-29 01:25:07 stephena Exp $ +// $Id: EventHandler.cxx,v 1.137 2005-12-29 01:40:41 stephena Exp $ //============================================================================ #include @@ -337,7 +337,7 @@ void EventHandler::poll(uInt32 time) // Check if we have an event from the eventstreamer // TODO - should we lock out input from the user while getting synthetic events? int type, value; - if(myEventStreamer->pollEvent(type, value)) + while(myEventStreamer->pollEvent(type, value)) myEvent->set((Event::Type)type, value); // Check for an event