Commit Graph

  • feab9d42c1 5363 - Memory leak of joystick->sensors in SDL_JoystickClose Sam Lantinga 2020-11-24 06:40:13 -08:00
  • 34bea84a54 Fixed bug 5335 - Patch: enable joystick/haptic/evdev support by default on FreeBSD Sam Lantinga 2020-11-23 23:03:55 -08:00
  • 1e943e2ad2 Fixed building with an older SDK and macOS target Sam Lantinga 2020-11-23 22:59:22 -08:00
  • 1fc5ca6484 Fixed building with an older SDK and macOS target Sam Lantinga 2020-11-23 22:24:54 -08:00
  • 4121ab6200 Fixed bug 5354 - DirectFB: Add Vulkan support Sam Lantinga 2020-11-23 21:25:07 -08:00
  • e44bf8a080 Fixed bug 5359 - Incorrect sensor data from DualShock4 Sam Lantinga 2020-11-23 21:18:37 -08:00
  • c8c818d7a4 Fixed bug 5360 - non-libudev joystick detection doesn't see controllers that were already connected Sam Lantinga 2020-11-23 21:14:37 -08:00
  • 8e2746cfb6 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. Simon McVittie 2020-11-23 21:10:48 -08:00
  • e9869e07bf Fixed bug 5335 - enable joystick/haptic/evdev support by default on FreeBSD Sam Lantinga 2020-11-23 21:08:19 -08:00
  • 38ab8bf74b Fixed bug 5362 - Mac OS ARM doesn't build Metal/Vulkan back-end/renderers Sam Lantinga 2020-11-23 21:03:43 -08:00
  • 62e39b5fa7 Fixed building with an older SDK and macOS target Sam Lantinga 2020-11-23 20:57:14 -08:00
  • 268aa45645 Fixed compiling with SDL_JOYSTICK_RAWINPUT disabled Sam Lantinga 2020-11-23 20:26:28 -08:00
  • eaa53a1979 joystick: On Linux, don't try to close an invalid inotify file descriptor. Ryan C. Gordon 2020-11-23 22:16:07 -05:00
  • 5c9577476f joystick: Fix up Linux joystick code to (mostly) compile on FreeBSD. Ryan C. Gordon 2020-11-23 22:14:22 -05:00
  • 179bd66581 Don't enable PS5 controller support if DS4Windows is running - they conflict. Sam Lantinga 2020-11-23 18:27:43 -08:00
  • 5b3616c325 Generalized the raw input controller driver and moved XInput/WGI detection into it for XInput devices Sam Lantinga 2020-11-23 18:24:05 -08:00
  • 0ff5d55a07 x11: Don't try to grab the pointer on an unmapped window (thanks, Lee!) Ryan C. Gordon 2020-11-23 21:07:28 -05:00
  • 04b45b5581 Allow testing a specific controller Sam Lantinga 2020-11-23 14:28:30 -08:00
  • ff4bc1389c Fixed mapping controllers after adding the touchpad button Sam Lantinga 2020-11-23 14:28:16 -08:00
  • 4c96faee57 remove non-existing tslib support from autofoo and cmake Ozkan Sezer 2020-11-23 20:37:10 +03:00
  • fd89446782 Fixed building on Mac OS X on the command line and with an older macOS SDK Sam Lantinga 2020-11-21 14:13:26 -08:00
  • 1df593fb16 Fixed bug 5355 - Add GameController Framework support to macOS Sam Lantinga 2020-11-21 13:15:33 -08:00
  • 5e0644c15a Disable libusb by default, as it breaks on Linux when trying to use it with non-root permissions on some distributions Sam Lantinga 2020-11-21 12:55:56 -08:00
  • 870841c414 Reset the LED state after Bluetooth connection has completed on the PS5 controller Sam Lantinga 2020-11-21 11:59:01 -08:00
  • 120dc280ca Enable HIDAPI by default Sam Lantinga 2020-11-21 11:25:26 -08:00
  • a94fe009c6 Moved comment with the code it covers Sam Lantinga 2020-11-21 18:40:27 -08:00
  • 49f7be6d0d Fixed compile warning C4127: conditional expression is constant Sam Lantinga 2020-11-21 18:37:56 -08:00
  • 63b52e8e67 Remove SDL dependency in Windows code Sam Lantinga 2020-11-21 18:34:32 -08:00
  • d4954eb090 Removed debug code Sam Lantinga 2020-11-21 18:26:43 -08:00
  • b442e617e9 Fixed adding an extra zero byte for feature reports Sam Lantinga 2020-11-21 18:15:55 -08:00
  • 75721b191c Allow testing effects on PS4 controllers Sam Lantinga 2020-11-21 18:01:23 -08:00
  • 2e8e3854b8 Fixed compile warning Sam Lantinga 2020-11-21 17:59:15 -08:00
  • 6b56b98fc3 Fixed is_BLE() return value Sam Lantinga 2020-11-21 09:26:11 -08:00
  • 65c9f1d2cc Fixed upstream bug: FD 0 is a valid file descriptor Sam Lantinga 2020-11-21 09:06:48 -08:00
  • 549010f2a0 It takes 2 packets to stop audio haptics and start emulated rumble on the PS5 controller Sam Lantinga 2020-11-20 13:24:49 -08:00
  • 082558db33 SDL_os2messagebox.c (_makeDlg): fix crash if title and/or message is NULL. Ozkan Sezer 2020-11-20 12:20:02 +03:00
  • bf7d198d48 The HORI Fighting Commander should only show up as an XInput Switch Controller on Windows Sam Lantinga 2020-11-19 19:09:42 -08:00
  • 6cb7f9e39a Respect SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS for Nintendo Switch Pro controllers using the HIDAPI driver Sam Lantinga 2020-11-19 19:09:40 -08:00
  • 9980766533 Respect SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS for the Nintendo Switch Pro controller on Linux Sam Lantinga 2020-11-19 19:09:38 -08:00
  • 7366693f3b Added support for a few more controllers on Linux Sam Lantinga 2020-11-19 19:09:36 -08:00
  • ffb4d960b2 Disabled Xbox protocol debugging Sam Lantinga 2020-11-19 19:09:34 -08:00
  • c9b097e659 Clarify the meaning of the rumble enable bits for the PS5 controller Sam Lantinga 2020-11-19 13:31:16 -08:00
  • c85623d790 Re-enable haptic audio after rumble on PS5 controller Sam Lantinga 2020-11-19 13:10:14 -08:00
  • b0b76a61c7 Fixed rumble on PS5 controllers connected to Windows over Bluetooth Sam Lantinga 2020-11-19 07:12:53 -08:00
  • 8c3196da60 Fixed some compiler warnings Sam Lantinga 2020-11-18 21:33:11 -08:00
  • 45f1437549 Experimenting with requesting the serial number on an Xbox One controller Sam Lantinga 2020-11-18 20:34:12 -08:00
  • 963d8b3f40 Fixed bits in the initial Xbox One protocol ack Sam Lantinga 2020-11-18 20:34:10 -08:00
  • cd51a51f00 Updated with a better understanding of the Xbox One controller protocol Sam Lantinga 2020-11-18 20:34:08 -08:00
  • 335cfa107b x11: Don't crash if a messagebox has a NULL title string. Ryan C. Gordon 2020-11-18 11:24:08 -05:00
  • 51ea6a6d44 Don't send controller gyro and accelerometer updates if the values haven't changed. Sam Lantinga 2020-11-17 22:09:52 -08:00
  • 463d84a860 Added support for the PS5 controller gyro and accelerometer Sam Lantinga 2020-11-17 10:56:56 -08:00
  • fcb21aa883 Added API for sensors on game controllers Sam Lantinga 2020-11-17 10:30:20 -08:00
  • b79e1baa36 Added weak linking to hidapi framework Sam Lantinga 2020-11-17 10:29:36 -08:00
  • 0150455d2c Added SDL_crc32.c to the Windows RT projects Sam Lantinga 2020-11-16 17:42:04 -08:00
  • d140d88744 Added SDL_JoystickGetSerial() and SDL_GameControllerGetSerial() Sam Lantinga 2020-11-16 17:36:47 -08:00
  • 55e59a4f33 crc32: Fixed include path. Ryan C. Gordon 2020-11-16 18:48:13 -05:00
  • dfc24e05bc fix os/2 build Ozkan Sezer 2020-11-17 02:39:56 +03:00
  • 7bbea0bb94 Fixed build warning Sam Lantinga 2020-11-16 15:10:02 -08:00
  • 71e32f5e1b Added SDL_crc32() Sam Lantinga 2020-11-16 15:00:15 -08:00
  • 3d48fc05c3 Added notes about the pad lights on the PS5 controller Sam Lantinga 2020-11-16 13:21:02 -08:00
  • 4514ad573e Fixed updating LED state when starting application with Bluetooth PS5 controller connected Sam Lantinga 2020-11-16 13:07:11 -08:00
  • a37e3ae218 Implemented PS5 effects over Bluetooth Sam Lantinga 2020-11-16 11:21:58 -08:00
  • c6c116e847 Implemented setting the LED color on the PS5 controller Sam Lantinga 2020-11-16 10:51:13 -08:00
  • fe4da4206a Improve LED color calculation, don't set LED unless left thumbstick is moved Sam Lantinga 2020-11-16 10:39:44 -08:00
  • aa7c3eae19 Fixed size of rumble packet Sam Lantinga 2020-11-16 09:16:01 -08:00
  • f28c01a4fb Fixed rumble order on PS5 Sam Lantinga 2020-11-16 09:11:15 -08:00
  • eb94c19a63 SDL: fix iOS build Sam Lantinga 2020-11-16 08:09:15 -08:00
  • 8243bd1dc6 SDL: Plumb PS5 rumble to output report Sam Lantinga 2020-11-16 08:09:13 -08:00
  • c0f7325b85 SDL_PrivateJoystickForceRecentering: fix wrong loop counter usage. Ozkan Sezer 2020-11-15 17:10:15 +03:00
  • 1ed36d21b0 egl: Fix detection in configure script on systems without X11 (bug #5270) Brian Kubisiak 2020-11-15 04:10:02 +03:00
  • bbbec723e5 SDL_config_windows.h: define HAVE_TRUNC[F] for Visual Studio >= 2013 Ozkan Sezer 2020-11-14 14:03:40 +03:00
  • 3e40b87f56 SDL_config_os2.h: undefine HAVE_TRUNC Ozkan Sezer 2020-11-14 14:03:40 +03:00
  • bee8db3b04 config: Make sure HAVE_TRUNC and HAVE_TRUNCF are defined as appropriate. Ryan C. Gordon 2020-11-14 02:16:41 -05:00
  • 5c34c973e6 Clarify that we're using button indices, not using gamepad button names Sam Lantinga 2020-11-13 19:40:25 -08:00
  • 9f51fad361 Added support for the touchpad on PS4 and PS5 controllers Sam Lantinga 2020-11-13 18:01:29 -08:00
  • 78422fa3c8 Added more detail on the PS5 controller state packet and enable full reports over Bluetooth Sam Lantinga 2020-11-13 13:17:07 -08:00
  • 30371f2d4d Fixed doubled report ID for Bluetooth Classic devices on Linux Sam Lantinga 2020-11-13 13:17:04 -08:00
  • 8cd4f364db Mapped the touchpad click as SDL_CONTROLLER_BUTTON_MISC1 on the PS5 controller Sam Lantinga 2020-11-12 20:02:31 -08:00
  • 8e312a6a59 Fixed detecting Bluetooth XInput controllers on Windows Sam Lantinga 2020-11-12 15:56:33 -08:00
  • 8b29aaddbd Fixed warning when building on Windows Sam Lantinga 2020-11-12 14:34:11 -08:00
  • e0018d0869 Fixed Windows build Sam Lantinga 2020-11-12 14:23:56 -08:00
  • 0500c04468 Fix SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL also applying to HIGH priorities Sam Lantinga 2020-11-12 07:53:05 -08:00
  • 5b0d432942 Implemented trigger rumble in the HIDAPI Xbox One driver Sam Lantinga 2020-11-12 07:53:03 -08:00
  • e749c1266f Fixed overflow in trigger rumble calculation Sam Lantinga 2020-11-12 07:53:01 -08:00
  • 52486d018a SDL_keycode.h (SDL_Keymod): remove comma at end of enumerator list Ozkan Sezer 2020-11-12 15:10:00 +03:00
  • c122e9b9ce linux/SDL_sysjoystick.c (MaybeRemoveDevice): remove SDL_USE_LIBUDEV guards Ozkan Sezer 2020-11-12 14:11:50 +03:00
  • 94a047f718 fix xcode project file permissions Ozkan Sezer 2020-11-12 14:11:40 +03:00
  • 83b653d55d Fixed build warning Sam Lantinga 2020-11-11 20:09:56 -08:00
  • dc76449661 Backed out change for bug 5335 - enable joystick/haptic/evdev support by default on FreeBSD Sam Lantinga 2020-11-11 19:53:10 -08:00
  • 76bd6cd2d9 Fixed bug 5326 - Logitech Extreme 3D joystick is listed as gamepad in linux section of SDL_gamecontrollerdb.h Sam Lantinga 2020-11-11 19:45:56 -08:00
  • 3160c7d66f Fixed bug 5327 - When direct input fails to load, but a controlller is plugged in through another api, an access violation happens. Sam Lantinga 2020-11-11 19:43:02 -08:00
  • 502cfe314a Fixed bug 5332 - WGI: Fix wrong level of indirection and implicit truncating cast. Sam Lantinga 2020-11-11 19:39:46 -08:00
  • 1822f97e5f Fixed bug 5346 - Add FreeBSD evdev KBIO keyboard input driver Sam Lantinga 2020-11-11 19:37:47 -08:00
  • 38ed8a955a Fixed bug 5335 - enable joystick/haptic/evdev support by default on FreeBSD Sam Lantinga 2020-11-11 19:31:03 -08:00
  • 320a7587d7 Fixed compiler warnings Sam Lantinga 2020-11-11 19:26:59 -08:00
  • 65847539dd test: Add a unit test for input device classification heuristics This uses pre-recorded evdev capabilities, so that we can check for regressions without the devices having to be physically present. Simon McVittie 2020-11-11 19:15:43 -08:00
  • b0eba1c55d joystick: Use inotify to detect joystick unplug if not using udev This improves SDL's ability to detect joystick hotplug in a container environment. Simon McVittie 2020-11-11 19:15:32 -08:00
  • aae53d5972 evdev: Detect whether input devices are accelerometers Anything with X, Y and Z axes but no buttons is probably an accelerometer (this is the assumption made in udev). Simon McVittie 2020-11-11 19:15:09 -08:00
  • fdd945f2af joystick: Use a better heuristic to guess what is a joystick Previously we only checked for at least one button or key and at least the X and Y absolute axes, but this has both false positives and false negatives. Simon McVittie 2020-11-11 19:14:52 -08:00
  • 8db3171b98 udev: Factor out SDL_EVDEV_GuessDeviceClass This works on capability bitfields that can either come from udev or from ioctls, so it is equally applicable to both udev and non-udev input device detection. Simon McVittie 2020-11-11 19:14:34 -08:00