7854f43b6d
Disable SDL_JOYSTICK_HIDAPI on iOS and tvOS by default
Sam Lantinga
2020-12-01 14:43:15 -08:00
ebf315e0f2
Fixed bug 5369 - iOS static library build copies public headers files into xcode archive
Sam Lantinga
2020-12-01 14:01:12 -08:00
4b35a18d8b
Fixed bug 5366 - cmake build doesn't detect Metal on macOS
Sam Lantinga
2020-12-01 13:50:42 -08:00
798b228806
Fixed bug 5367 - SDL_OpenUrl disabled on iOS due to unified Xcode project file
Sam Lantinga
2020-12-01 13:46:34 -08:00
c78ca2d170
Fixed bug 5371 - Rawinput: Fix truncating cast of string length.
Sam Lantinga
2020-12-01 13:38:42 -08:00
a3ccf9adca
Fixed bug 5373 - [PATCH] Rawinput: Get correlated XInput battery info
Sam Lantinga
2020-12-01 13:36:41 -08:00
e3966e25ca
Use the correct internal API for updating the battery level for PS5 controllers
Sam Lantinga
2020-11-30 13:04:30 -08:00
f4ed07de06
We don't know whether the PS5 controller is Bluetooth or not when we open it
Sam Lantinga
2020-11-30 13:02:34 -08:00
04f0fd13b5
Remember to close the game controller when we're done with it
Sam Lantinga
2020-11-27 18:57:42 -08:00
1f2f536bd2
Fixed XInput correlation for raw input controllers after hotplug events
Sam Lantinga
2020-11-27 18:57:40 -08:00
012471e959
Open and test all connected controllers
Sam Lantinga
2020-11-27 18:57:38 -08:00
1c865c460b
Load the raw input device list at init time so it's available when DirectInput is doing device detection
Sam Lantinga
2020-11-27 18:57:36 -08:00
a0c5bfa3bd
Moved raw input event processing from the main thread to the joystick thread
Sam Lantinga
2020-11-27 13:08:40 -08:00
4fbefbe20d
Sort the raw input axes by usage, so X comes before Y, etc.
Sam Lantinga
2020-11-27 11:33:53 -08:00
4ddac485db
Backed out minor optimization that prevented correlation_id from being set
Sam Lantinga
2020-11-27 11:33:51 -08:00
8973a25849
Enable dispatching of WM_INPUT_DEVICE_CHANGE events directly, in case the application hasn't created a window with the normal message loop
Sam Lantinga
2020-11-27 10:44:56 -08:00
e8adc64810
Enable dispatching of WM_INPUT events directly, in case the application hasn't created a window with the normal message loop
Sam Lantinga
2020-11-27 10:44:55 -08:00
0252235e82
Recheck devices if another API queries raw input for a new device
Sam Lantinga
2020-11-27 10:44:53 -08:00
a7dede7e36
Re-enable axis correlation for raw input controllers, for twin stick shooters that don't need face buttons
Sam Lantinga
2020-11-27 10:44:51 -08:00
ce77966da8
Fixed RAWINPUT_IsDevicePresent() not returning TRUE for Xbox One controllers
Sam Lantinga
2020-11-27 10:44:49 -08:00
8a449de20d
Fixed Xbox 360 wireless controller being picked up by WGI when it's being managed by RAWINPUT
Sam Lantinga
2020-11-27 10:44:47 -08:00
37c9e4afa3
Fixed processing WM_INPUT_DEVICE_CHANGE at startup
Sam Lantinga
2020-11-27 06:03:15 -08:00
248fc75bd2
Correlate just based on buttons, joystick axes are not as precise and could potentially cause incorrect uncorrelation.
Sam Lantinga
2020-11-27 05:53:56 -08:00
e7e615de26
Removed extraneous windows message pumping
Sam Lantinga
2020-11-27 05:53:54 -08:00
2931eccd84
Fixed detecting Bluetooth raw input devices, which have device names longer than 128 characters
Sam Lantinga
2020-11-27 05:53:52 -08:00
849ce80376
Renamed SDL_JOYSTICK_RAWINPUT_GAMING_INPUT to SDL_JOYSTICK_RAWINPUT_WGI
Sam Lantinga
2020-11-27 05:53:50 -08:00
219a28dd8a
Fixed D-pad uncorrelating raw input controllers (thanks Jimbly!)
Sam Lantinga
2020-11-27 03:45:05 -08:00
2c079a2f6c
SDL_FillRects: prevent empty SDL_surface from raising an error message
Sylvain Becker
2020-11-27 09:42:14 +01:00
845b903324
Implemented trigger rumble for raw input controllers
Sam Lantinga
2020-11-25 16:46:42 -08:00
517be80822
Implemented battery status for Bluetooth Xbox One controllers
Sam Lantinga
2020-11-25 16:05:19 -08:00
24cc0012f0
Some controllers don't always reset their triggers to zero when they are released (e.g. Xbox One S in Bluetooth mode), so only trigger rumble if the trigger is pulled halfway or more.
Sam Lantinga
2020-11-25 16:05:15 -08:00
6a7f29cdbb
Fixed compiling on tvOS
Sam Lantinga
2020-11-25 11:31:17 -08:00
9ec2cf5629
Fixed building with Windows.Gaming.Input enabled
Sam Lantinga
2020-11-25 10:31:59 -08:00
3c07dd12f0
Strip an extra '.' off of the HORI manufacturer name
Sam Lantinga
2020-11-25 10:28:48 -08:00
159d1b3df5
Don't set the serial number after the controller is opened
Sam Lantinga
2020-11-25 01:35:45 -08:00
7d92b14f46
Simplified Xbox One controller initialization state, and don't query for the serial number.
Sam Lantinga
2020-11-25 01:18:18 -08:00
9fc4a4c92c
Revamped Xbox One HIDAPI init sequence
Sam Lantinga
2020-11-24 22:25:26 -08:00
e16afa792f
Automatically switch to testing a new controller when it's plugged in
Sam Lantinga
2020-11-24 16:38:49 -08:00
46a844786b
Added SDL_wcscasecmp() and SDL_wcsncasecmp()
Sam Lantinga
2020-11-24 12:43:01 -08:00
e4b7d9a221
Removed usage of TARGET_OS_OSX for building with older SDKs
Sam Lantinga
2020-11-24 07:56:59 -08:00
a7d91ebaa5
winrt: Add EffectiveLocation support for newer Win10 releases
Ethan Lee
2020-11-09 17:05:21 -05:00
16d789fba9
Disable compiler warning when using -fobjc-weak building C code
Sam Lantinga
2020-11-24 07:30:39 -08:00
a5cde4cb0c
Fixed trying to use @available() on older SDK
Sam Lantinga
2020-11-24 07:29:55 -08:00
b4338dda47
Enable -fobjc-weak when building MFI controller code
Sam Lantinga
2020-11-24 07:22:29 -08:00
97782e6c64
Don't try to call IOS_SupportedHIDDevice() if it's not defined
Sam Lantinga
2020-11-24 07:11:49 -08:00
a063b9fbfb
Fixed compiler warning
Sam Lantinga
2020-11-24 07:06:31 -08:00
c63bbb06e9
Including SDL_config_iphoneos.h enables MFI controller code
Sam Lantinga
2020-11-24 06:55:33 -08:00
eba069eaf0
It looks like the Objective C support needed to build MFI controller code is in 10.8
Sam Lantinga
2020-11-24 06:53:48 -08:00
23ad4f4b8c
configure.ac: check GameController framework support when targeting Darwin
Ozkan Sezer
2020-11-24 14:10:30 +03:00
711d409032
CMakeLists.txt: add src/joystick/iphoneos/*.m to Darwin joystick sources
Ozkan Sezer
2020-11-24 14:10:30 +03:00
7a05dbf4b9
Fixed building on FreeBSD
Sam Lantinga
2020-11-24 06:42:53 -08:00
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