mirror of https://github.com/stella-emu/stella.git
fixed autofire for trackball using keyboard fire event
This commit is contained in:
parent
3fa7dadcba
commit
7964c93a2f
|
@ -88,11 +88,8 @@ void PointingDevice::update()
|
|||
updateDirection(-myEvent.get(Event::MouseAxisYMove), myVCounterRemainder,
|
||||
myTrackBallDown, myTrackBallLinesV, myScanCountV, myFirstScanOffsetV);
|
||||
|
||||
// Digital events (from keyboard or joystick hats & buttons)
|
||||
setPin(DigitalPin::Six, myEvent.get(Event::JoystickZeroFire) == 0);
|
||||
|
||||
// We allow left and right mouse buttons for fire button
|
||||
setPin(DigitalPin::Six, !getAutoFireState(
|
||||
setPin(DigitalPin::Six, !getAutoFireState(myEvent.get(Event::JoystickZeroFire) == 0 ||
|
||||
myEvent.get(Event::MouseButtonLeftValue) || myEvent.get(Event::MouseButtonRightValue)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue