mirror of
https://github.com/encounter/SDL.git
synced 2025-05-21 14:51:27 +00:00
Don't set Bluetooth controllers to wired power level
This commit is contained in:
parent
57c3b2c950
commit
946f4777f6
@ -1318,7 +1318,7 @@ HIDAPI_DriverSwitch_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joysti
|
||||
/* Initialize the joystick capabilities */
|
||||
joystick->nbuttons = 16;
|
||||
joystick->naxes = SDL_CONTROLLER_AXIS_MAX;
|
||||
joystick->epowerlevel = SDL_JOYSTICK_POWER_WIRED;
|
||||
joystick->epowerlevel = ctx->m_bUsingBluetooth ? SDL_JOYSTICK_POWER_UNKNOWN : SDL_JOYSTICK_POWER_WIRED;
|
||||
|
||||
return SDL_TRUE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user