kc3-lang/SDL

Branch :


Log

Author Commit Date CI Message
c63bbb06 2020-11-24 06:55:33 Including SDL_config_iphoneos.h enables MFI controller code
eba069ea 2020-11-24 06:53:48 It looks like the Objective C support needed to build MFI controller code is in 10.8
7a05dbf4 2020-11-24 06:42:53 Fixed building on FreeBSD Alex S Looks like we have a collision with https://hg.libsdl.org/SDL/rev/cd774daff9f6. (Again, the headers in the base system are intended for drivers and should not be used for compiling non-base applications. At least that's the policy for now: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240964#c19.)
feab9d42 2020-11-24 06:40:13 5363 - Memory leak of joystick->sensors in SDL_JoystickClose Mathieu Eyraud Joystick->sensors is never freed.
711d4090 2020-11-24 14:10:30 CMakeLists.txt: add src/joystick/iphoneos/*.m to Darwin joystick sources .. so that there won't be missing symbols. TODO: add checks for SDL_JOYSTICK_MFI ???
23ad4f4b 2020-11-24 14:10:30 configure.ac: check GameController framework support when targeting Darwin disables SDL_JOYSTICK_MFI for i386 or if MAC_OS_X_VERSION_MIN_REQUIRED < 1090 --disable-joystick-mfi disables it unconditionally.
34bea84a 2020-11-23 23:03:55 Fixed bug 5335 - Patch: enable joystick/haptic/evdev support by default on FreeBSD Alex S Ah, that's not quite enough. You need to: 1. rename src/joystick/bsd/SDL_sysjoystick.c to something; 2. regenerate configure.
1e943e2a 2020-11-23 22:59:22 Fixed building with an older SDK and macOS target
1fc5ca64 2020-11-23 22:24:54 Fixed building with an older SDK and macOS target
4121ab62 2020-11-23 21:25:07 Fixed bug 5354 - DirectFB: Add Vulkan support Nicolas Caramelli This patch adds Vulkan support for the DirectFB video driver. A screenshot with SDL tests running on DirectFB is available on the HiGFXback project: https://github.com/caramelli/higfxback/wiki/DirectFB#sdl
e44bf8a0 2020-11-23 21:18:37 Fixed bug 5359 - Incorrect sensor data from DualShock4 multiply gyro values by sensitivity When the hardware calibration fails, values read from sensors need to be multiplied by default sensitivity (16 for gyro, 1 for accelerometer).
c8c818d7 2020-11-23 21:14:37 Fixed bug 5360 - non-libudev joystick detection doesn't see controllers that were already connected Simon McVittie When watching for hotplug events we can poll the inotify fd, but we still need to scan /dev/input once per process, otherwise we'll fail to detect devices that were already connected.
8e2746cf 2020-11-23 21:10:48 joystick: Don't use udev in Flatpak or pressure-vessel container Flatpak[1] and pressure-vessel[2] are known to use user namespaces, therefore udev event notification via netlink won't work reliably. Both frameworks provide a filesystem API that libraries can use to detect them. Do that, and automatically fall back from udev-based device discovery to the inotify-based fallback introduced in Bug #5337. [1] <https://flatpak.org/> [2] <https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/tree/master/pressure-vessel> Signed-off-by: Simon McVittie <smcv@collabora.com>
e9869e07 2020-11-23 21:08:19 Fixed bug 5335 - enable joystick/haptic/evdev support by default on FreeBSD Alex S Evdev headers aren't actually included in the base system (well, it has a private copy), they are available through the devel/evdev-proto port instead. We also have devel/libinotify and devel/libudev-devd shims, I didn't verify whether they work with SDL.
38ab8bf7 2020-11-23 21:03:43 Fixed bug 5362 - Mac OS ARM doesn't build Metal/Vulkan back-end/renderers C.W. Betts As it is, SDL2's built-in config on macOS for Metal excludes Apple Silicon. This is due to thinking that the 64-bit Mac platform would always be x86_64. My patch fixes this by using the catch-all of 64-bit platforms.
62e39b5f 2020-11-23 20:57:14 Fixed building with an older SDK and macOS target
268aa456 2020-11-23 20:26:28 Fixed compiling with SDL_JOYSTICK_RAWINPUT disabled
eaa53a19 2020-11-23 22:16:07 joystick: On Linux, don't try to close an invalid inotify file descriptor.
5c957747 2020-11-23 22:14:22 joystick: Fix up Linux joystick code to (mostly) compile on FreeBSD.
179bd665 2020-11-23 18:27:43 Don't enable PS5 controller support if DS4Windows is running - they conflict.
5b3616c3 2020-11-23 18:24:05 Generalized the raw input controller driver and moved XInput/WGI detection into it for XInput devices This fixes bad report parsing for various newer Xbox controllers, and this driver is now preferred over XInput, since it handles more than 4 controllers.
0ff5d55a 2020-11-23 21:07:28 x11: Don't try to grab the pointer on an unmapped window (thanks, Lee!) Fixes Bugzilla #5352.
04b45b55 2020-11-23 14:28:30 Allow testing a specific controller
ff4bc138 2020-11-23 14:28:16 Fixed mapping controllers after adding the touchpad button
4c96faee 2020-11-23 20:37:10 remove non-existing tslib support from autofoo and cmake
a94fe009 2020-11-21 18:40:27 Moved comment with the code it covers
49f7be6d 2020-11-21 18:37:56 Fixed compile warning C4127: conditional expression is constant
63b52e8e 2020-11-21 18:34:32 Remove SDL dependency in Windows code
d4954eb0 2020-11-21 18:26:43 Removed debug code
b442e617 2020-11-21 18:15:55 Fixed adding an extra zero byte for feature reports At least with PS4 and PS5 controllers DeviceIoControl() returns the correct value
75721b19 2020-11-21 18:01:23 Allow testing effects on PS4 controllers Note, this will switch the controller into advanced report mode which breaks DirectInput on Windows
2e8e3854 2020-11-21 17:59:15 Fixed compile warning
fd894467 2020-11-21 14:13:26 Fixed building on Mac OS X on the command line and with an older macOS SDK
1df593fb 2020-11-21 13:15:33 Fixed bug 5355 - Add GameController Framework support to macOS C.W. Betts This patch adds support to the GameController framework on macOS Big Sur and later, adding support for MFi controllers as well as rumble support for PS4 and Xbox One. There is some code to make sure that the IOKit joystick handler doesn't include two controllers at once. While the GameController framework is present in earlier versions of macOS, there was no public, approved way of checking if a specific IOHIDDevice is a controller that GameController could handle. This was changed in Big Sur.
5e0644c1 2020-11-21 12:55:56 Disable libusb by default, as it breaks on Linux when trying to use it with non-root permissions on some distributions
870841c4 2020-11-21 11:59:01 Reset the LED state after Bluetooth connection has completed on the PS5 controller
120dc280 2020-11-21 11:25:26 Enable HIDAPI by default
6b56b98f 2020-11-21 09:26:11 Fixed is_BLE() return value
65c9f1d2 2020-11-21 09:06:48 Fixed upstream bug: FD 0 is a valid file descriptor https://github.com/libusb/hidapi/issues/199
549010f2 2020-11-20 13:24:49 It takes 2 packets to stop audio haptics and start emulated rumble on the PS5 controller
082558db 2020-11-20 12:20:02 SDL_os2messagebox.c (_makeDlg): fix crash if title and/or message is NULL. c.f.: bug #5253.
bf7d198d 2020-11-19 19:09:42 The HORI Fighting Commander should only show up as an XInput Switch Controller on Windows
6cb7f9e3 2020-11-19 19:09:40 Respect SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS for Nintendo Switch Pro controllers using the HIDAPI driver
99807665 2020-11-19 19:09:38 Respect SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS for the Nintendo Switch Pro controller on Linux
7366693f 2020-11-19 19:09:36 Added support for a few more controllers on Linux
ffb4d960 2020-11-19 19:09:34 Disabled Xbox protocol debugging
c9b097e6 2020-11-19 13:31:16 Clarify the meaning of the rumble enable bits for the PS5 controller
c85623d7 2020-11-19 13:10:14 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
b0b76a61 2020-11-19 07:12:53 Fixed rumble on PS5 controllers connected to Windows over Bluetooth
8c3196da 2020-11-18 21:33:11 Fixed some compiler warnings
45f14375 2020-11-18 20:34:12 Experimenting with requesting the serial number on an Xbox One controller
963d8b3f 2020-11-18 20:34:10 Fixed bits in the initial Xbox One protocol ack
cd51a51f 2020-11-18 20:34:08 Updated with a better understanding of the Xbox One controller protocol
335cfa10 2020-11-18 11:24:08 x11: Don't crash if a messagebox has a NULL title string. Fixes Bugzilla #5253.
51ea6a6d 2020-11-17 22:09:52 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.
463d84a8 2020-11-17 10:56:56 Added support for the PS5 controller gyro and accelerometer
fcb21aa8 2020-11-17 10:30:20 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
b79e1baa 2020-11-17 10:29:36 Added weak linking to hidapi framework Also added testsensor to the test project
0150455d 2020-11-16 17:42:04 Added SDL_crc32.c to the Windows RT projects
d140d887 2020-11-16 17:36:47 Added SDL_JoystickGetSerial() and SDL_GameControllerGetSerial()
55e59a4f 2020-11-16 18:48:13 crc32: Fixed include path.
dfc24e05 2020-11-17 02:39:56 fix os/2 build
7bbea0bb 2020-11-16 15:10:02 Fixed build warning
71e32f5e 2020-11-16 15:00:15 Added SDL_crc32()
3d48fc05 2020-11-16 13:21:02 Added notes about the pad lights on the PS5 controller
4514ad57 2020-11-16 13:07:11 Fixed updating LED state when starting application with Bluetooth PS5 controller connected
a37e3ae2 2020-11-16 11:21:58 Implemented PS5 effects over Bluetooth
c6c116e8 2020-11-16 10:51:13 Implemented setting the LED color on the PS5 controller
fe4da420 2020-11-16 10:39:44 Improve LED color calculation, don't set LED unless left thumbstick is moved
aa7c3eae 2020-11-16 09:16:01 Fixed size of rumble packet
f28c01a4 2020-11-16 09:11:15 Fixed rumble order on PS5
eb94c19a 2020-11-16 08:09:15 SDL: fix iOS build
8243bd1d 2020-11-16 08:09:13 SDL: Plumb PS5 rumble to output report
c0f7325b 2020-11-15 17:10:15 SDL_PrivateJoystickForceRecentering: fix wrong loop counter usage. The typo seems to have been added by commit c7782fd6142b
1ed36d21 2020-11-15 04:10:02 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.
bbbec723 2020-11-14 14:03:40 SDL_config_windows.h: define HAVE_TRUNC[F] for Visual Studio >= 2013
3e40b87f 2020-11-14 14:03:40 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..
bee8db3b 2020-11-14 02:16:41 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.
5c34c973 2020-11-13 19:40:25 Clarify that we're using button indices, not using gamepad button names
9f51fad3 2020-11-13 18:01:29 Added support for the touchpad on PS4 and PS5 controllers
78422fa3 2020-11-13 13:17:07 Added more detail on the PS5 controller state packet and enable full reports over Bluetooth
30371f2d 2020-11-13 13:17:04 Fixed doubled report ID for Bluetooth Classic devices on Linux
8cd4f364 2020-11-12 20:02:31 Mapped the touchpad click as SDL_CONTROLLER_BUTTON_MISC1 on the PS5 controller
8e312a6a 2020-11-12 15:56:33 Fixed detecting Bluetooth XInput controllers on Windows
8b29aadd 2020-11-12 14:34:11 Fixed warning when building on Windows
e0018d08 2020-11-12 14:23:56 Fixed Windows build
0500c044 2020-11-12 07:53:05 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
5b0d4329 2020-11-12 07:53:03 Implemented trigger rumble in the HIDAPI Xbox One driver
e749c126 2020-11-12 07:53:01 Fixed overflow in trigger rumble calculation
52486d01 2020-11-12 15:10:00 SDL_keycode.h (SDL_Keymod): remove comma at end of enumerator list
c122e9b9 2020-11-12 14:11:50 linux/SDL_sysjoystick.c (MaybeRemoveDevice): remove SDL_USE_LIBUDEV guards fixes bug #5349.
94a047f7 2020-11-12 14:11:40 fix xcode project file permissions
83b653d5 2020-11-11 20:09:56 Fixed build warning
dc764496 2020-11-11 19:53:10 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> ^~~~~~~~~~~~~~~
76bd6cd2 2020-11-11 19:45:56 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.
3160c7d6 2020-11-11 19:43:02 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.
502cfe31 2020-11-11 19:39:46 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.
1822f97e 2020-11-11 19:37:47 Fixed bug 5346 - Add FreeBSD evdev KBIO keyboard input driver wahil1976 This patch adds the KBIO text input driver for FreeBSD, which allows text input to fully work without text spilling out into the console. It also supports accented input, AltGr keys and Alt Lock combinations. Tested with US accent keys layout and various AltGr layouts.
38ed8a95 2020-11-11 19:31:03 Fixed bug 5335 - enable joystick/haptic/evdev support by default on FreeBSD Alex S ...which allows SDL to talk to webcamd/iichid. (Webcamd actually bundles quite a few gamepad drivers.) Note that this does _not_ disable usbhid, both joystick backends will be compiled.
320a7587 2020-11-11 19:26:59 Fixed compiler warnings