mirror of https://github.com/stella-emu/stella.git
Minor formatting changes I forgot in a previous commit.
This commit is contained in:
parent
2c31957173
commit
5cec746b29
|
@ -39,7 +39,7 @@ PhysicalJoystickHandler::PhysicalJoystickHandler(
|
||||||
OSystem& system, EventHandler& handler, Event& event)
|
OSystem& system, EventHandler& handler, Event& event)
|
||||||
: myOSystem{system},
|
: myOSystem{system},
|
||||||
myHandler{handler},
|
myHandler{handler},
|
||||||
myEvent(event)
|
myEvent{event}
|
||||||
{
|
{
|
||||||
if(myOSystem.settings().getInt("event_ver") != Event::VERSION) {
|
if(myOSystem.settings().getInt("event_ver") != Event::VERSION) {
|
||||||
Logger::info("event version mismatch; dropping previous joystick mappings");
|
Logger::info("event version mismatch; dropping previous joystick mappings");
|
||||||
|
|
|
@ -195,6 +195,7 @@ void Paddles::update()
|
||||||
setPin(DigitalPin::Three, !getAutoFireStateP1(firePressedB));
|
setPin(DigitalPin::Three, !getAutoFireStateP1(firePressedB));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
AnalogReadout::Connection Paddles::getReadOut(int lastAxis, int& newAxis, int center)
|
AnalogReadout::Connection Paddles::getReadOut(int lastAxis, int& newAxis, int center)
|
||||||
{
|
{
|
||||||
const float range = ANALOG_RANGE - analogDeadZone() * 2;
|
const float range = ANALOG_RANGE - analogDeadZone() * 2;
|
||||||
|
|
Loading…
Reference in New Issue