mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
Fixed rumble for third-party Nintento Switch Pro controllers
The 8BitDo SF30 Pro Gamepad will generate a single motor pulse for each rumble message, so we need to do this frequently to have continous rumble on this device.
This commit is contained in:
parent
428cfddb4c
commit
e9bc21fba5
@ -455,7 +455,7 @@ static SDL_bool WriteRumble(SDL_DriverSwitch_Context *ctx)
|
||||
|
||||
/* Refresh the rumble state periodically */
|
||||
if (ctx->m_bRumbleActive) {
|
||||
ctx->m_unRumbleRefresh = SDL_GetTicks() + 1000;
|
||||
ctx->m_unRumbleRefresh = SDL_GetTicks() + 30;
|
||||
if (!ctx->m_unRumbleRefresh) {
|
||||
ctx->m_unRumbleRefresh = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user