Skip to content

Commit

Permalink
Fixed rumble for third-party Nintento Switch Pro controllers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Mar 5, 2020
1 parent 428cfdd commit e9bc21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/hidapi/SDL_hidapi_switch.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit e9bc21f

Please sign in to comment.