- Fixed the PaddleOneFire event. Pressing the fire button on paddle 1

(second paddle on first Stelladaptor) actually generated a PaddleTwoFire
event.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@244 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2004-05-13 12:38:17 +00:00
parent 5719fa117a
commit d9c3b3eb60
1 changed files with 3 additions and 3 deletions

View File

@ -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: mainSDL.cxx,v 1.75 2004-05-11 19:42:55 stephena Exp $
// $Id: mainSDL.cxx,v 1.76 2004-05-13 12:38:17 stephena Exp $
//============================================================================
#include <fstream>
@ -652,13 +652,13 @@ void handleEvents()
else
{
theConsole->eventHandler().sendEvent(Event::JoystickOneFire, state);
theConsole->eventHandler().sendEvent(Event::PaddleOneFire, state);
theConsole->eventHandler().sendEvent(Event::PaddleTwoFire, state);
}
}
else if(button == 1)
{
if(type == JT_STELLADAPTOR_1)
theConsole->eventHandler().sendEvent(Event::PaddleTwoFire, state);
theConsole->eventHandler().sendEvent(Event::PaddleOneFire, state);
else
theConsole->eventHandler().sendEvent(Event::PaddleThreeFire, state);
}