CommonHostInterface: Update rumble every frame regardless of change
Fixes SDL rumble cutting off early when a game sends the same motor strength values every frame over a long duration.
This commit is contained in:
parent
4cc2883224
commit
d860c14267
2 changed files with 4 additions and 15 deletions
|
|
@ -710,7 +710,7 @@ void SDLControllerInterface::SetControllerRumbleStrength(int controller_index, c
|
|||
return;
|
||||
|
||||
// we'll update before this duration is elapsed
|
||||
static constexpr u32 DURATION = 1000;
|
||||
static constexpr u32 DURATION = 65535; // SDL_MAX_RUMBLE_DURATION_MS
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 9)
|
||||
if (it->use_game_controller_rumble)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue