mirror of https://github.com/encounter/SDL.git
Don't report rumble capability for Nintendo Online controllers
This commit is contained in:
parent
9ce9c2530a
commit
f1aa843415
|
@ -1572,7 +1572,7 @@ HIDAPI_DriverSwitch_GetJoystickCapabilities(SDL_HIDAPI_Device *device, SDL_Joyst
|
||||||
SDL_DriverSwitch_Context *ctx = (SDL_DriverSwitch_Context *)device->context;
|
SDL_DriverSwitch_Context *ctx = (SDL_DriverSwitch_Context *)device->context;
|
||||||
Uint32 result = 0;
|
Uint32 result = 0;
|
||||||
|
|
||||||
if (!ctx->m_bInputOnly) {
|
if (ctx->m_eControllerType == k_eSwitchDeviceInfoControllerType_ProController && !ctx->m_bInputOnly) {
|
||||||
/* Doesn't have an RGB LED, so don't return SDL_JOYCAP_LED here */
|
/* Doesn't have an RGB LED, so don't return SDL_JOYCAP_LED here */
|
||||||
result |= SDL_JOYCAP_RUMBLE;
|
result |= SDL_JOYCAP_RUMBLE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue