Skip to content

Commit

Permalink
Don't set Bluetooth controllers to wired power level
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 4, 2022
1 parent 57c3b2c commit 946f477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/hidapi/SDL_hidapi_switch.c
Expand Up @@ -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;

Expand Down

0 comments on commit 946f477

Please sign in to comment.