431 Commits
Author SHA1 Message Date
Sam Lantinga 7b82a40bbf Added a container ID property to controllers and audio devices
This allows matching up controllers and their associated audio devices, e.g. DualSense controllers and their associated haptic audio endpoint.

Fixes https://github.com/libsdl-org/SDL/issues/9197
2026-11-09 09:46:26 -08:00
Sam Lantinga ddfe1bedd1 Created the concept of a central joystick device
This allows us to hold common data between all drivers and handle driver overriding in a centralized way, guaranteeing that all drivers have updated device state before sending device change updates.

The dummy joystick driver goes to one line. :)
2026-11-02 11:25:16 -08:00
Sam Lantinga 8ca2edc59e Updated deployment targets to match Xcode 27 requirements 2026-09-22 09:19:10 -07:00
Ethan Lee 6083940ef4 Add support for the Xbox 360 "Big Button" wireless receiver 2026-09-07 17:30:01 -04:00
Sam Lantinga 9123f69cdd Added testcolorspace to the Apple test Xcode project 2026-07-03 13:33:27 -07:00
Bartłomiej Dach df65a2385d Fix Xcode project not building due to missing header
Both `SDL3/SDL.h` and `SDL3/SDL_events.h` attempt to `#include
<SDL3/SDL_notification.h>` and that header was not added to Xcode,
leading to compilation failures.
2026-06-24 10:28:07 -07:00
Sam Lantinga 3ccd484bad Weak link the UserNotifications framework
Fixes https://github.com/libsdl-org/SDL/issues/15803
2026-06-10 14:17:53 -07:00
Frank Praznik 595eb8d0d1 Fix framework in Xcode project 2026-06-10 13:25:38 -04:00
Frank Praznik d1b08ac7b6 Add testnotificaiton to SDLTest.xcodeproj 2026-06-10 13:25:38 -04:00
Frank Praznik ba7c0b897b Add the Cocoa notification driver
Supported on macOS 10.14+ and iOS.
2026-06-10 13:25:38 -04:00
Sam Lantinga 5cf16e4522 Added curved window mode on visionOS 26 (#15298) 2026-05-12 16:48:06 -07:00
Anonymous Maarten 085447a56e apple: add exports file 2026-04-27 20:50:09 +02:00
DominusExult 5d1e390a9c Hiding OpenGLES API deprecation since iOS 12.0 warning 2026-02-15 10:57:07 -08:00
Max Seidenstücker d870911202 CodeSpell 2026-02-07 18:14:00 +03:00
chenzw bb8eee8fac Added support for the GameSir-G7 Pro 8K controller 2026-02-03 20:09:04 -08:00
9a91d7236a GPU: OpenXR integration (#14837)
Based on Beyley's initial draft in #11601.

Co-authored-by: Beyley Cardellio <ep1cm1n10n123@gmail.com>
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com>
2026-01-30 17:18:51 -05:00
Anonymous Maarten fc4f45f0e3 Updated to version 3.5.0 for development 2026-01-01 17:30:41 +01:00
Sam Lantinga d15ecb21be Updated to version 3.4.1 for development 2025-12-31 18:18:45 -08:00
Sam Lantinga a962f40bbb Updated to version 3.4.0 for release 2025-12-31 16:43:54 -08:00
Sam Lantinga d583fc88be Updated to version 3.3.7 for development 2025-12-16 09:38:05 -08:00
Sam Lantinga ef0a604d44 Updated to version 3.3.6 for preview release 2025-12-16 08:54:04 -08:00
Sam Lantinga 450a2cb5e4 Added support for parsing the Xbox report descriptor
This gives us more robust handling of Bluetooth Xbox controllers which may vary the report format between firmware versions.

Firmware versions tested:
Xbox One S: 3.1.1, 4.8.1923, 5.13.3143
Xbox One S/X: 5.11.3118, 5.23.6
Xbox Elite Series 2: 5.22.16, 5.23.6

Fixes https://github.com/libsdl-org/SDL/issues/14597
2025-12-10 10:49:39 -08:00
Sam Lantinga 7773157fae Updated to version 3.3.5 for development 2025-12-07 09:30:04 -08:00
Sam Lantinga f173fd28f0 Updated to version 3.3.4 for preview release 2025-12-06 14:57:22 -08:00
Sam Lantinga 67728a5450 Allow resizing test applications on iPadOS 2025-11-21 09:31:10 -08:00
Sam Lantinga 1998b65045 Added support for the new Steam Controller 2025-11-12 11:32:32 -08:00
Anonymous Maarten 0da649eb72 release: don't download pre-release dependencies + strict version parsing 2025-11-04 18:00:23 +01:00
Sam Lantinga de5d8616bf Updated SDL tests XCode project 2025-10-31 10:34:42 -07:00
Sam Lantinga b6f67dd2b2 tests: add a template Info.plist that uses the whole screen
The OS uses the presence of the UILaunchScreen key to determine whether to display the application in compatibility mode or display using the whole screen.
2025-10-31 10:34:42 -07:00
Sam Lantinga be781fc8f5 Updated to version 3.3.3 for development 2025-10-23 22:41:03 -07:00
Sam Lantinga b31c4b70b3 Updated version and documentation for 3.3.2 preview release 2025-10-23 15:20:26 -07:00
Sam Lantinga e18d63a4e2 Added SDL_RotateSurface()
Fixes https://github.com/libsdl-org/SDL/issues/14269
2025-10-22 17:55:02 -07:00
Jeong Sang (정상) 792bde98c3 Make SDL3.framework path detection more robust by searching upwards (#14259) 2025-10-20 00:23:21 -07:00
Peter0x44 705ced8cf5 Make D3D math functions static inline to reduce likelihood of linking conflicts
Convert SDL_d3dmath.c functions to static inline in SDL_d3dmath.h to make
it less likely to conflict when static linking SDL. raylib's SDL backend
does not work with a "normal" upstream binary static link. It has these
errors:

/usr/bin/ld: /usr/local/lib64/libSDL3.a(SDL_d3dmath.c.o): in function `MatrixIdentity':
SDL/src/render/SDL_d3dmath.c:35: multiple definition of `MatrixIdentity'; CMakeFiles/raylib.dir/rcore.c.o:rcore.c:(.text+0x18470): first defined here
/usr/bin/ld: /usr/local/lib64/libSDL3.a(SDL_d3dmath.c.o): in function `MatrixMultiply':
SDL/src/render/SDL_d3dmath.c:44: multiple definition of `MatrixMultiply'; CMakeFiles/raylib.dir/rcore.c.o:rcore.c:(.text+0x18540): first defined here
collect2: error: ld returned 1 exit status

It works if these functions aren't emitted, (i.e.
!SDL_VIDEO_RENDER_D3D(11|12|GPU|VULKAN)

Or, if SDL is not linked static. Which I know is preferred anyway.

In raylib's case, it doesn't use this code anyway so it's not a problem
to build it yourself with them disabled. But it's a minor hassle to be
incompatible with static linking libraries from upstream.

I can't see any good reason for these functions to not be static inline
already, so I just put them in the header and deleted the .c.

Raylib's conflicting case is a library with a public function exposed to
users. But SDL's case is not.

- Moved all matrix functions from SDL_d3dmath.c to SDL_d3dmath.h as static inline
- Removed SDL_d3dmath.c from all project files (Visual Studio and Xcode)
- Functions affected: MatrixIdentity, MatrixMultiply, MatrixScaling,
  MatrixTranslation, MatrixRotationX, MatrixRotationY, MatrixRotationZ
2025-10-14 16:56:41 -07:00
Sam Lantinga 23b487ceda Added testyuv to the SDLTest Xcode project 2025-10-13 15:27:13 -07:00
Sam Lantinga ee622c570a Made SDL_dlopennote.h a public header 2025-10-10 12:47:42 -07:00
Sam Lantinga e1305ec2e2 Updated Xcode project for the switch to png test data 2025-10-10 10:14:07 -07:00
Cameron Cawley 0f62b7c3b4 Remove teststreaming 2025-10-07 11:12:31 -07:00
Sam Lantinga baed512453 Fixed building tests on visionOS 2025-09-29 13:28:00 -07:00
Sam Lantinga a662d13f73 Fixed building testautomation on iOS 2025-09-22 10:09:30 -07:00
zuiki_inn fc648e5546 Support ZUIKI MasconPro (#13770)
* Add ZUIKI controller

Support version:
MasconPro

Enable rumble
Disable sensors
2025-09-21 23:38:28 -07:00
Sam Lantinga 3c627390bb Updated deployment target to VisionOS 1.3 2025-09-12 10:28:44 -07:00
DominusExult a223481ed3 xcFramework: Removing the simulators' debug symbols to reduce file size. 2025-09-02 08:57:18 -07:00
DominusExult 98c03c644a Adding dSYMs (DWARF debug symbols) to the xcFramework.
Needed to generate debug symbols for both release and debug builds and explicitly set the format so all arches actually generate the dSYMs.
This allows distributing an SDL3 app to the AppStore without the need to generate the dSYMs via script when using either the xcFramework or embedding the SDL3 Xcode project.
Fixes #13573
2025-08-31 15:33:58 -07:00
Sam Lantinga 09ca7e8f64 Move libusb support into a shared location 2025-08-28 09:10:47 -07:00
Ethan Lee efea62ed61 hidapi: Add a stub driver for Switch 2.
Thanks to kiddkaffeine for the Xcode updates!
2025-08-28 09:10:47 -07:00
mitchellcairns 18eeaea054 Implement SInput Device Support (#13343)
This implements a new SDL HID driver for a format developed by Hand Held Legend for their gamepad devices called SInput

Devices that are supported by this change with well-defined mappings

GC Ultimate ( https://gcultimate.com )
ProGCC ( https://handheldlegend.com/products/progcc-kit-wireless-wired-bundle )

The SInput format is documented here: https://github.com/HandHeldLegend/SInput-HID
2025-07-15 18:35:47 -07:00
mattbsage f62572344f Clean up INTERFACE_COMPILE_OPTIONS
The extra text causes Meson/Ninja builds to fail as headers are not found.
2025-05-24 19:13:25 -07:00
Sam Lantinga 6f994cc7a8 Fixed macOS build 2025-05-22 10:18:14 -07:00
bakatrouble 354895d975 Add Flydigi VADER 4 Pro HIDAPI support (#12874) 2025-05-22 09:56:17 -07:00