mirror of https://github.com/stella-emu/stella.git
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:
parent
a75e4bdaf3
commit
a7e0be4475
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue