Fixed bug when using Paddles in Astroblast (and probably seen in other

ROMs as well); strangely enough, you had to press Joystick 0 Up before
the paddle handling was initiated.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2431 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2012-03-27 21:35:07 +00:00
parent 303fb5bdbc
commit bccac33a55
1 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ Paddles::Paddles(Jack jack, const Event& event, const System& system,
// As much as possible, precompute which events we care about for
// a given port; this will speed up processing in update()
// Consider whether this is the left or right port
if(myJack == Left)
{
@ -221,7 +222,8 @@ Paddles::Paddles(Jack jack, const Event& event, const System& system,
myKeyRepeat0 = myKeyRepeat1 = false;
myPaddleRepeat0 = myPaddleRepeat1 = myLastAxisX = myLastAxisY = 0;
myCharge[0] = myCharge[1] = myLastCharge[0] = myLastCharge[1] = 0;
myCharge[0] = myCharge[1] = TRIGRANGE / 2;
myLastCharge[0] = myLastCharge[1] = 0;
// Paranoid mode: defaults for the global variables should be set
// before the first instance of this class is instantiated