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
b79e1baa36
Added weak linking to hidapi framework
...
Also added testsensor to the test project
2020-11-17 10:29:36 -08:00
Sam Lantinga
0150455d2c
Added SDL_crc32.c to the Windows RT projects
2020-11-16 17:42:04 -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
Ozkan Sezer
dfc24e05bc
fix os/2 build
2020-11-17 02:39:56 +03: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
fe4da4206a
Improve LED color calculation, don't set LED unless left thumbstick is moved
2020-11-16 10:39:44 -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
Brian Kubisiak
1ed36d21b0
egl: Fix detection in configure script on systems without X11 (bug #5270 )
...
In recent versions of EGL headers on Linux, the MESA_EGL_NO_X11_HEADERS macro is
deprecated and has been replaced with EGL_NO_X11. As a result, the configure
script would fail the compilation check for EGL headers and disable EGL (and by
extension, Wayland) support when X11 headers are not installed. Fix this by
adding the correct macro to disable X11 support in the headers.
2020-11-15 04:10:02 +03:00
Ozkan Sezer
bbbec723e5
SDL_config_windows.h: define HAVE_TRUNC[F] for Visual Studio >= 2013
2020-11-14 14:03:40 +03:00
Ozkan Sezer
3e40b87f56
SDL_config_os2.h: undefine HAVE_TRUNC
...
trunc() exists only in OpenWatcom 2.0 fork, and its implementation
already is the same as the fallback we have here..
2020-11-14 14:03:40 +03:00
Ryan C. Gordon
bee8db3b04
config: Make sure HAVE_TRUNC and HAVE_TRUNCF are defined as appropriate.
...
The configure/cmake scripts were checking for these functions but we didn't
have the SDL_config.h.* pieces in place. The other config headers are best
guesses.
2020-11-14 02:16:41 -05: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
Sam Lantinga
e749c1266f
Fixed overflow in trigger rumble calculation
2020-11-12 07:53:01 -08:00
Ozkan Sezer
52486d018a
SDL_keycode.h (SDL_Keymod): remove comma at end of enumerator list
2020-11-12 15:10:00 +03: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
Ozkan Sezer
94a047f718
fix xcode project file permissions
2020-11-12 14:11:40 +03:00
Sam Lantinga
83b653d55d
Fixed build warning
2020-11-11 20:09:56 -08:00
Sam Lantinga
dc76449661
Backed out change for bug 5335 - enable joystick/haptic/evdev support by default on FreeBSD
...
Building on FreeBSD fails:
/buildbot/worker/SDL/sdl-freebsd-amd64/src/src/joystick/linux/SDL_sysjoystick.c:26:2: error: SDL now requires a Linux 2.4+ kernel with /dev/input/event support.
#error SDL now requires a Linux 2.4+ kernel with /dev/input/event support.
^
/buildbot/worker/SDL/sdl-freebsd-amd64/src/src/joystick/linux/SDL_sysjoystick.c:35:10: fatal error: 'sys/inotify.h' file not found
#include <sys/inotify.h>
^~~~~~~~~~~~~~~
2020-11-11 19:53:10 -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