Changed the second button on the Genesis controller to correspond to

the BoosterGrip 'booster' button, since they both use the same analog
pin (pin 5).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1958 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2010-02-25 21:49:30 +00:00
parent a75e4bdaf3
commit a7e0be4475
2 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,7 @@ Genesis::Genesis(Jack jack, const Event& event, const System& system)
myLeftEvent = Event::JoystickZeroLeft;
myRightEvent = Event::JoystickZeroRight;
myFire1Event = Event::JoystickZeroFire1;
myFire2Event = Event::JoystickZeroFire2;
myFire2Event = Event::JoystickZeroFire3;
}
else
{
@ -39,11 +39,12 @@ Genesis::Genesis(Jack jack, const Event& event, const System& system)
myLeftEvent = Event::JoystickOneLeft;
myRightEvent = Event::JoystickOneRight;
myFire1Event = Event::JoystickOneFire1;
myFire2Event = Event::JoystickOneFire2;
myFire2Event = Event::JoystickOneFire3;
}
// Analog pin 9 is not connected to this controller at all
// Analog pin 5 corresponds to button 'C' on the gamepad
// Analog pin 5 corresponds to button 'C' on the gamepad, and corresponds
// to the 'booster' button on a BoosterGrip controller
myAnalogPinValue[Five] = myAnalogPinValue[Nine] = maximumResistance;
}

View File

@ -27,7 +27,8 @@
The standard Sega Genesis controller works with the 2600 console for
joystick directions and some of the buttons. Button 'B' corresponds to
the normal fire button (joy0fire), while button 'C' is read through
INPT1 (analog pin 5), which is normally mapped to the BoosterGrip trigger.
INPT1 (analog pin 5), which is normally mapped to the BoosterGrip
booster button.
@author Stephen Anthony
*/