mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
We don't know whether the PS5 controller is Bluetooth or not when we open it
This commit is contained in:
parent
04f0fd13b5
commit
f4ed07de06
@ -545,7 +545,6 @@ HIDAPI_DriverPS5_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joystick)
|
|||||||
/* Initialize the joystick capabilities */
|
/* Initialize the joystick capabilities */
|
||||||
joystick->nbuttons = 17;
|
joystick->nbuttons = 17;
|
||||||
joystick->naxes = SDL_CONTROLLER_AXIS_MAX;
|
joystick->naxes = SDL_CONTROLLER_AXIS_MAX;
|
||||||
joystick->epowerlevel = SDL_JOYSTICK_POWER_WIRED;
|
|
||||||
|
|
||||||
SDL_PrivateJoystickAddTouchpad(joystick, 2);
|
SDL_PrivateJoystickAddTouchpad(joystick, 2);
|
||||||
SDL_PrivateJoystickAddSensor(joystick, SDL_SENSOR_GYRO);
|
SDL_PrivateJoystickAddSensor(joystick, SDL_SENSOR_GYRO);
|
||||||
|
Loading…
Reference in New Issue
Block a user