Sam Lantinga
b442e617e9
Fixed adding an extra zero byte for feature reports
...
At least with PS4 and PS5 controllers DeviceIoControl() returns the correct value
2020-11-21 18:15:55 -08:00
Sam Lantinga
2e8e3854b8
Fixed compile warning
2020-11-21 17:59:15 -08:00
Sam Lantinga
6b56b98fc3
Fixed is_BLE() return value
2020-11-21 09:26:11 -08:00
Sam Lantinga
65c9f1d2cc
Fixed upstream bug: FD 0 is a valid file descriptor
...
https://github.com/libusb/hidapi/issues/199
2020-11-21 09:06:48 -08:00
Sam Lantinga
549010f2a0
It takes 2 packets to stop audio haptics and start emulated rumble on the PS5 controller
2020-11-20 13:24:49 -08:00
Ozkan Sezer
082558db33
SDL_os2messagebox.c (_makeDlg): fix crash if title and/or message is NULL.
...
c.f.: bug #5253 .
2020-11-20 12:20:02 +03:00
Sam Lantinga
bf7d198d48
The HORI Fighting Commander should only show up as an XInput Switch Controller on Windows
2020-11-19 19:09:42 -08:00
Sam Lantinga
6cb7f9e39a
Respect SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS for Nintendo Switch Pro controllers using the HIDAPI driver
2020-11-19 19:09:40 -08:00
Sam Lantinga
9980766533
Respect SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS for the Nintendo Switch Pro controller on Linux
2020-11-19 19:09:38 -08:00
Sam Lantinga
7366693f3b
Added support for a few more controllers on Linux
2020-11-19 19:09:36 -08:00
Sam Lantinga
ffb4d960b2
Disabled Xbox protocol debugging
2020-11-19 19:09:34 -08:00
Sam Lantinga
c9b097e659
Clarify the meaning of the rumble enable bits for the PS5 controller
2020-11-19 13:31:16 -08:00
Sam Lantinga
c85623d790
Re-enable haptic audio after rumble on PS5 controller
...
Also make sure we don't set any other state when we're not intending to, and added more interesting effects which are currently not exposed via API
2020-11-19 13:10:14 -08:00
Sam Lantinga
b0b76a61c7
Fixed rumble on PS5 controllers connected to Windows over Bluetooth
2020-11-19 07:12:53 -08:00
Sam Lantinga
8c3196da60
Fixed some compiler warnings
2020-11-18 21:33:11 -08:00
Sam Lantinga
45f1437549
Experimenting with requesting the serial number on an Xbox One controller
2020-11-18 20:34:12 -08:00
Sam Lantinga
963d8b3f40
Fixed bits in the initial Xbox One protocol ack
2020-11-18 20:34:10 -08:00
Sam Lantinga
cd51a51f00
Updated with a better understanding of the Xbox One controller protocol
2020-11-18 20:34:08 -08:00
Ryan C. Gordon
335cfa107b
x11: Don't crash if a messagebox has a NULL title string.
...
Fixes Bugzilla #5253 .
2020-11-18 11:24:08 -05:00
Sam Lantinga
51ea6a6d44
Don't send controller gyro and accelerometer updates if the values haven't changed.
...
This keeps SDL_PollEvent() from returning data continuously when polling controller state.
2020-11-17 22:09:52 -08:00
Sam Lantinga
463d84a860
Added support for the PS5 controller gyro and accelerometer
2020-11-17 10:56:56 -08:00
Sam Lantinga
fcb21aa883
Added API for sensors on game controllers
...
Added support for the PS4 controller gyro and accelerometer on iOS and HIDAPI drivers
Also fixed an issue with the accelerometer on iOS having inverted axes
2020-11-17 10:30:20 -08:00
Sam Lantinga
d140d88744
Added SDL_JoystickGetSerial() and SDL_GameControllerGetSerial()
2020-11-16 17:36:47 -08:00
Ryan C. Gordon
55e59a4f33
crc32: Fixed include path.
2020-11-16 18:48:13 -05:00
Sam Lantinga
7bbea0bb94
Fixed build warning
2020-11-16 15:10:02 -08:00
Sam Lantinga
71e32f5e1b
Added SDL_crc32()
2020-11-16 15:00:15 -08:00
Sam Lantinga
3d48fc05c3
Added notes about the pad lights on the PS5 controller
2020-11-16 13:21:02 -08:00
Sam Lantinga
4514ad573e
Fixed updating LED state when starting application with Bluetooth PS5 controller connected
2020-11-16 13:07:11 -08:00
Sam Lantinga
a37e3ae218
Implemented PS5 effects over Bluetooth
2020-11-16 11:21:58 -08:00
Sam Lantinga
c6c116e847
Implemented setting the LED color on the PS5 controller
2020-11-16 10:51:13 -08:00
Sam Lantinga
aa7c3eae19
Fixed size of rumble packet
2020-11-16 09:16:01 -08:00
Sam Lantinga
f28c01a4fb
Fixed rumble order on PS5
2020-11-16 09:11:15 -08:00
Sam Lantinga
eb94c19a63
SDL: fix iOS build
2020-11-16 08:09:15 -08:00
Sam Lantinga
8243bd1dc6
SDL: Plumb PS5 rumble to output report
2020-11-16 08:09:13 -08:00
Ozkan Sezer
c0f7325b85
SDL_PrivateJoystickForceRecentering: fix wrong loop counter usage.
...
The typo seems to have been added by commit c7782fd6142b
2020-11-15 17:10:15 +03:00
Sam Lantinga
5c34c973e6
Clarify that we're using button indices, not using gamepad button names
2020-11-13 19:40:25 -08:00
Sam Lantinga
9f51fad361
Added support for the touchpad on PS4 and PS5 controllers
2020-11-13 18:01:29 -08:00
Sam Lantinga
78422fa3c8
Added more detail on the PS5 controller state packet and enable full reports over Bluetooth
2020-11-13 13:17:07 -08:00
Sam Lantinga
30371f2d4d
Fixed doubled report ID for Bluetooth Classic devices on Linux
2020-11-13 13:17:04 -08:00
Sam Lantinga
8cd4f364db
Mapped the touchpad click as SDL_CONTROLLER_BUTTON_MISC1 on the PS5 controller
2020-11-12 20:02:31 -08:00
Sam Lantinga
8e312a6a59
Fixed detecting Bluetooth XInput controllers on Windows
2020-11-12 15:56:33 -08:00
Sam Lantinga
8b29aaddbd
Fixed warning when building on Windows
2020-11-12 14:34:11 -08:00
Sam Lantinga
e0018d0869
Fixed Windows build
2020-11-12 14:23:56 -08:00
Sam Lantinga
0500c04468
Fix SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL also applying to HIGH priorities
...
As the name suggests, the hint should only apply to SDL_THREAD_PRIORITY_TIME_CRITICAL
The resulting priorities for my current distro result in these values:
| High | Time Critical
Hint |--------------|-----------------
0 | P=10 N=-10 | P=5 N=-15
1 | P=10 N=-10 | P=-21 N=0
2020-11-12 07:53:05 -08:00
Sam Lantinga
5b0d432942
Implemented trigger rumble in the HIDAPI Xbox One driver
2020-11-12 07:53:03 -08:00
Ozkan Sezer
c122e9b9ce
linux/SDL_sysjoystick.c (MaybeRemoveDevice): remove SDL_USE_LIBUDEV guards
...
fixes bug #5349 .
2020-11-12 14:11:50 +03:00
Sam Lantinga
83b653d55d
Fixed build warning
2020-11-11 20:09:56 -08:00
Sam Lantinga
76bd6cd2d9
Fixed bug 5326 - Logitech Extreme 3D joystick is listed as gamepad in linux section of SDL_gamecontrollerdb.h
...
Spooky
For some reason the Logitech Extreme 3D joystick was added to SDL_gamecontrollerdb.h in the linux section only.
This breaks the joystick in linux as it is not a gamepad. I am unable to correctly use or map the Logitech Exteme 3D joystick in games that use SDL2 in linux.
Please remove Logitech Extreme 3D from SDL_gamecontrollerdb.h Linux section. It is a joystick not a gamepad.
2020-11-11 19:45:56 -08:00
Sam Lantinga
3160c7d66f
Fixed bug 5327 - When direct input fails to load, but a controlller is plugged in through another api, an access violation happens.
...
Bart van der Werf
When directinput fails to load, but a controlller is plugged in, an access violation happens.
This is due to IEventHandler_CRawGameControllerVtbl_InvokeAdded calling SDL_DINPUT_JoystickPresent which does not check if dinput is assigned signalling initialization of directinput.
2020-11-11 19:43:02 -08:00
Sam Lantinga
502cfe314a
Fixed bug 5332 - WGI: Fix wrong level of indirection and implicit truncating cast.
...
Joel Linn
This fixes two types of MSVC compiler warnings.
- One parameter in the function signatures of two WGI event handlers had one level of indirection too much (and did not match Windows SDK headers). The indirection was cast away so it still worked.
- size_t was implicitly cast to UINT32 for a number of (constant) string lengths.
2020-11-11 19:39:46 -08:00