mirror of https://github.com/encounter/SDL.git
Bluetooth devices can recover from over a second of dropped reports
This commit is contained in:
parent
824f2d4650
commit
da50f1bd3e
|
@ -2057,7 +2057,7 @@ HIDAPI_DriverSwitch_UpdateDevice(SDL_HIDAPI_Device *device)
|
|||
WriteProprietary(ctx, k_eSwitchProprietaryCommandIDs_ForceUSB, NULL, 0, SDL_FALSE);
|
||||
}
|
||||
} else if (ctx->m_bUsingBluetooth) {
|
||||
const Uint32 INPUT_WAIT_TIMEOUT_MS = 1000;
|
||||
const Uint32 INPUT_WAIT_TIMEOUT_MS = 3000;
|
||||
if (SDL_TICKS_PASSED(now, ctx->m_unLastInput + INPUT_WAIT_TIMEOUT_MS)) {
|
||||
/* Bluetooth may have disconnected, try reopening the controller */
|
||||
size = -1;
|
||||
|
|
Loading…
Reference in New Issue