Minor formatting changes I forgot in a previous commit.

This commit is contained in:
Stephen Anthony 2021-12-30 11:38:34 -03:30
parent 2c31957173
commit 5cec746b29
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ PhysicalJoystickHandler::PhysicalJoystickHandler(
OSystem& system, EventHandler& handler, Event& event)
: myOSystem{system},
myHandler{handler},
myEvent(event)
myEvent{event}
{
if(myOSystem.settings().getInt("event_ver") != Event::VERSION) {
Logger::info("event version mismatch; dropping previous joystick mappings");

View File

@ -195,6 +195,7 @@ void Paddles::update()
setPin(DigitalPin::Three, !getAutoFireStateP1(firePressedB));
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AnalogReadout::Connection Paddles::getReadOut(int lastAxis, int& newAxis, int center)
{
const float range = ANALOG_RANGE - analogDeadZone() * 2;