mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 09:26:25 +00:00
Reset enhanced mode state when closing a controller
Fixes https://github.com/libsdl-org/SDL/issues/11912
This commit is contained in:
@@ -2766,6 +2766,10 @@ static void HIDAPI_DriverSwitch_CloseJoystick(SDL_HIDAPI_Device *device, SDL_Joy
|
||||
SDL_PlayerLEDHintChanged, ctx);
|
||||
|
||||
ctx->joystick = NULL;
|
||||
|
||||
ctx->m_bReportSensors = false;
|
||||
ctx->m_bEnhancedMode = false;
|
||||
ctx->m_bEnhancedModeAvailable = false;
|
||||
}
|
||||
|
||||
static void HIDAPI_DriverSwitch_FreeDevice(SDL_HIDAPI_Device *device)
|
||||
|
Reference in New Issue
Block a user