libretro: Fix interfacing with paddle sensitivity.

This commit is contained in:
Stephen Anthony 2024-08-29 14:27:28 -02:30
parent bb374fb982
commit 498e8bc4de
1 changed files with 6 additions and 8 deletions

View File

@ -142,18 +142,16 @@ class StellaLIBRETRO
void setPaddleJoypadSensitivity(int sensitivity) void setPaddleJoypadSensitivity(int sensitivity)
{ {
if(getLeftControllerType() == Controller::Type::Paddles) if(getLeftControllerType() == Controller::Type::Paddles ||
static_cast<Paddles&>(myOSystem->console().leftController()).setDigitalSensitivity(sensitivity); getRightControllerType() == Controller::Type::Paddles)
if(getRightControllerType() == Controller::Type::Paddles) Paddles::setDigitalSensitivity(sensitivity);
static_cast<Paddles&>(myOSystem->console().rightController()).setDigitalSensitivity(sensitivity);
} }
void setPaddleAnalogSensitivity(int sensitivity) void setPaddleAnalogSensitivity(int sensitivity)
{ {
if(getLeftControllerType() == Controller::Type::Paddles) if(getLeftControllerType() == Controller::Type::Paddles ||
static_cast<Paddles&>(myOSystem->console().leftController()).setAnalogSensitivity(sensitivity); getRightControllerType() == Controller::Type::Paddles)
if(getRightControllerType() == Controller::Type::Paddles) Paddles::setAnalogSensitivity(sensitivity);
static_cast<Paddles&>(myOSystem->console().rightController()).setAnalogSensitivity(sensitivity);
} }
protected: protected: