mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
CommonHostInterface: Fix rumble not applying to non-first controller
This commit is contained in:
parent
fc9d276435
commit
deeb861918
|
@ -1361,7 +1361,7 @@ void CommonHostInterface::ClearInputMap()
|
||||||
void CommonHostInterface::AddControllerRumble(u32 controller_index, u32 num_motors, ControllerRumbleCallback callback)
|
void CommonHostInterface::AddControllerRumble(u32 controller_index, u32 num_motors, ControllerRumbleCallback callback)
|
||||||
{
|
{
|
||||||
ControllerRumbleState rumble;
|
ControllerRumbleState rumble;
|
||||||
rumble.controller_index = 0;
|
rumble.controller_index = controller_index;
|
||||||
rumble.num_motors = std::min<u32>(num_motors, ControllerRumbleState::MAX_MOTORS);
|
rumble.num_motors = std::min<u32>(num_motors, ControllerRumbleState::MAX_MOTORS);
|
||||||
rumble.last_strength.fill(0.0f);
|
rumble.last_strength.fill(0.0f);
|
||||||
rumble.update_callback = std::move(callback);
|
rumble.update_callback = std::move(callback);
|
||||||
|
|
Loading…
Reference in a new issue