mirror of https://github.com/stella-emu/stella.git
fixed #735 (trackball fire)
This commit is contained in:
parent
2db6ab7d16
commit
d292c8eb6b
|
@ -81,7 +81,7 @@ void PointingDevice::update()
|
|||
return;
|
||||
|
||||
// Update horizontal direction
|
||||
cerr << myEvent.get(Event::MouseAxisXMove) << ", " << myHCounterRemainder << endl;
|
||||
//cerr << myEvent.get(Event::MouseAxisXMove) << ", " << myHCounterRemainder << endl;
|
||||
updateDirection( myEvent.get(Event::MouseAxisXMove), myHCounterRemainder,
|
||||
myTrackBallLeft, myTrackBallLinesH, myScanCountH, myFirstScanOffsetH);
|
||||
|
||||
|
@ -90,7 +90,7 @@ void PointingDevice::update()
|
|||
myTrackBallDown, myTrackBallLinesV, myScanCountV, myFirstScanOffsetV);
|
||||
|
||||
// We allow left and right mouse buttons for fire button
|
||||
setPin(DigitalPin::Six, !getAutoFireState(myEvent.get(Event::JoystickZeroFire) == 0 ||
|
||||
setPin(DigitalPin::Six, !getAutoFireState(myEvent.get(Event::JoystickZeroFire) ||
|
||||
myEvent.get(Event::MouseButtonLeftValue) || myEvent.get(Event::MouseButtonRightValue)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue