mirror of https://github.com/stella-emu/stella.git
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:
parent
303fb5bdbc
commit
bccac33a55
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue