mirror of https://github.com/libsdl-org/SDL.git
Don't put wired Switch Pro controllers into simple report mode
This stops the controller from sending input or responding to queries until it's unplugged.
This commit is contained in:
parent
1ea99bc904
commit
eb89d0c8c3
|
|
@ -813,6 +813,12 @@ static Uint8 GetDefaultInputMode(SDL_DriverSwitch_Context *ctx)
|
|||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// Wired controllers break if they are put into simple controller state
|
||||
if (input_mode == k_eSwitchInputReportIDs_SimpleControllerState &&
|
||||
!ctx->device->is_bluetooth) {
|
||||
input_mode = k_eSwitchInputReportIDs_FullControllerState;
|
||||
}
|
||||
return input_mode;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue