mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
libretro: Fix incorrect rumble scale
This commit is contained in:
parent
352a3405e8
commit
d2ad114354
|
@ -838,8 +838,8 @@ void LibretroHostInterface::UpdateControllersAnalogController(u32 index)
|
||||||
|
|
||||||
if (m_rumble_interface_valid)
|
if (m_rumble_interface_valid)
|
||||||
{
|
{
|
||||||
const u16 strong = static_cast<u16>(static_cast<u32>(controller->GetVibrationMotorStrength(0) * 65565.0f));
|
const u16 strong = static_cast<u16>(static_cast<u32>(controller->GetVibrationMotorStrength(0) * 65535.0f));
|
||||||
const u16 weak = static_cast<u16>(static_cast<u32>(controller->GetVibrationMotorStrength(1) * 65565.0f));
|
const u16 weak = static_cast<u16>(static_cast<u32>(controller->GetVibrationMotorStrength(1) * 65535.0f));
|
||||||
m_rumble_interface.set_rumble_state(index, RETRO_RUMBLE_STRONG, strong);
|
m_rumble_interface.set_rumble_state(index, RETRO_RUMBLE_STRONG, strong);
|
||||||
m_rumble_interface.set_rumble_state(index, RETRO_RUMBLE_WEAK, weak);
|
m_rumble_interface.set_rumble_state(index, RETRO_RUMBLE_WEAK, weak);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue