mirror of https://github.com/stella-emu/stella.git
libretro: Fix interfacing with paddle sensitivity.
This commit is contained in:
parent
bb374fb982
commit
498e8bc4de
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue