Sam Lantinga
86bc65a741
Fixed non-Apple builds
2021-11-07 11:35:12 -08:00
Sam Lantinga
637bcd0b72
Fixed build warnings
2021-11-07 11:19:07 -08:00
Sam Lantinga
e14358265e
Cleanup sfSymbolName support and add them to the dynamic API functions
2021-11-07 11:16:48 -08:00
Patrick Hogan
149e5c656a
Support returning sfSymbolsName for gamepad controls on macOS / iOS / tvOS
2021-11-07 10:58:37 -08:00
Sam Lantinga
f3fd1ffb99
Fixed crash if SDL API functions are called on a disconnected controller on iOS
2021-10-20 15:18:03 -07:00
Sam Lantinga
ff85d4fbe5
Fixed Xbox Series X controller being detected by both IOKit and GCController on macOS
2021-09-08 17:51:47 -07:00
David Gow
fbc364908a
Use the new SDL_clamp() macro where sensible
...
There were a few places throughout the SDL code where values were
clamped using SDL_min() and SDL_max(). Now that we have an SDL_clamp()
macro, use this instead.
2021-08-14 09:01:14 -07:00
Sam Lantinga
e42e9a12de
Fixed build
2021-08-13 20:48:56 -07:00
Sam Lantinga
a186a503e7
Added SDL_GameControllerGetSensorDataRate() to get the sensor update rate for a controller.
2021-07-29 06:43:39 -07:00
Sam Lantinga
2a53f8315a
Fixed controllers showing up under both MFI and HIDAPI drivers
...
The Game Controller Kit doesn't show the controllers at startup, so the HIDAPI driver sees them first and therefore gets preference when a controller is supported by both drivers.
This fixes bug https://github.com/libsdl-org/SDL/issues/4209
2021-07-26 23:29:20 -07:00
Sam Lantinga
46869db01c
Fixed controller rumble on macOS
...
Needed to add a strong reference to the haptics engine
2021-07-26 23:27:13 -07:00
Sam Lantinga
947ad6e13a
Added support for the Xbox Series X controller on iOS and tvOS
2021-07-12 17:57:21 -07:00
Sam Lantinga
d135c0762f
Added SDL_GameControllerSendEffect() and SDL_JoystickSendEffect() to allow applications to send custom effects to the PS4 and PS5 controllers
...
See testgamecontroller.c for an example of a custom PS5 trigger effect
2021-07-08 13:22:41 -07:00
Sam Lantinga
9231f1f1cf
Added support for the PS5 controller on iOS and tvOS
2021-05-07 12:29:03 -07:00
Sam Lantinga
0bdf4f95bf
Disable system gestures on MFi controllers while they're open, so we get access to the back button, etc.
2021-03-22 19:19:01 -07:00
Sam Lantinga
9130f7c377
Updated copyright for 2021
2021-01-02 10:25:38 -08:00
Ozkan Sezer
637d425e3e
whitespace.
2020-12-15 00:11:10 +03:00
Sam Lantinga
cb36189692
Fixed bug 5235 - All internal sources should include SDL_assert.h
...
Ryan C. Gordon
We should really stick this in SDL_internal.h or something so it's always available.
2020-12-09 07:16:22 -08:00
Sam Lantinga
59f28b7f4b
Fixed whitespace
2020-12-03 18:17:01 -08:00
Sam Lantinga
6a7f29cdbb
Fixed compiling on tvOS
2020-11-25 11:31:17 -08:00
Sam Lantinga
e4b7d9a221
Removed usage of TARGET_OS_OSX for building with older SDKs
2020-11-24 07:56:59 -08:00
Sam Lantinga
a5cde4cb0c
Fixed trying to use @available() on older SDK
2020-11-24 07:29:55 -08:00
Sam Lantinga
97782e6c64
Don't try to call IOS_SupportedHIDDevice() if it's not defined
2020-11-24 07:11:49 -08:00
Sam Lantinga
a063b9fbfb
Fixed compiler warning
2020-11-24 07:06:31 -08:00
Sam Lantinga
c63bbb06e9
Including SDL_config_iphoneos.h enables MFI controller code
2020-11-24 06:55:33 -08:00
Sam Lantinga
1e943e2ad2
Fixed building with an older SDK and macOS target
2020-11-23 22:59:22 -08:00
Sam Lantinga
62e39b5fa7
Fixed building with an older SDK and macOS target
2020-11-23 20:57:14 -08:00
Sam Lantinga
fd89446782
Fixed building on Mac OS X on the command line and with an older macOS SDK
2020-11-21 14:13:26 -08:00