Anonymous Maarten
2734248544
Remove superfluous '/utf-8' from MSBuild projects
2025-08-28 23:26:48 +02: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
Sam Lantinga
da6e9bbf7c
Allow building the tray subsystem without the video subsystem
...
Fixes https://github.com/libsdl-org/SDL/issues/13235
2025-08-27 08:15:24 -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
bakatrouble
354895d975
Add Flydigi VADER 4 Pro HIDAPI support ( #12874 )
2025-05-22 09:56:17 -07:00
Vicki Pfau
00f3a82ada
Joystick: Add new GIP driver to replace old Xbox One wired driver
...
This new driver is based on official documentation released by Microsoft in
September, though it still lacks several important features, notably the
Security handshake for wireless dongles and audio support. It is, however, more
reliable and extensible than the old driver.
2025-05-01 11:04:33 -07:00
Austin Almond
14ae45c2b8
GDK: Handle ProjectDir with space
...
The call to compile_shaders_xbox.bat fails if ProjectDir contains a space. Wrapping the command in quotes fixes the issue.
2025-04-25 15:00:51 -07:00
Sam Lantinga
8a57c83ff9
Updated to GameInput v1.1
...
The biggest change is that the C API is no longer available.
Here are more details:
https://www.nuget.org/packages/Microsoft.GameInput
Fixes https://github.com/libsdl-org/SDL/issues/12802
2025-04-11 13:42:58 -07:00
8BitDo
e18c6bd2e7
8BitDo ( #12661 )
...
Added HIDAPI support for the 8BitDo Ultimate 2 Wireless Controller running firmware v1.03 or newer over Bluetooth.
2025-03-31 09:56:01 -07:00
Katharine Chui
35c03774f3
[SDL3] Adding input and FFB support for Logitech G29(PS3) on hidapi ( #11598 )
...
These changes enable the Logitech G29 wheel to run on hidapi with both SDL_Joystick and SDL_Haptic interfaces.
While it is already possible to use the wheel on Linux in WINE + SDL2 thanks to the in-tree evdev driver as well as new-lg4ff, these set of changes allow the G29 to be used with WINE under MacOS and FreeBSD
These wheels should also be supported, but I can only test them from G29's compat modes: G27, G25, DFGT, DFP, DFEX
Haptic and led support are ported from https://github.com/berarma/new-lg4ff
2025-03-17 07:24:39 -07:00
Sam Lantinga
db4e6c1931
Cocoa metal layers need their size updated before renderer updates
...
Also refactored event watch code so it can be shared between internal window event dispatch and public event watchers.
Fixes https://github.com/libsdl-org/SDL/issues/12376
2025-02-24 15:37:13 -08:00
Sam Lantinga
a792434a37
Added initial MJPG support using stb_image
2025-02-20 12:16:26 -08:00
Sam Lantinga
1b35ca9c32
Refactored GameInput initialization
2025-02-12 13:02:15 -08:00
Sam Lantinga
cf41ccc6ce
Removed stb_image.h from SDL
...
This adds quite a bit of code size to SDL for a niche use-case. This is easily handled in the application instead.
2025-02-10 17:18:16 -08:00
Sam Lantinga
84b0c13c44
Added support for Motion JPEG camera capture
...
Fixes https://github.com/libsdl-org/SDL/issues/12183
2025-02-10 17:18:16 -08:00
Quan Zhuo
c9341489cc
Fix #12197 : Force set /utf-8 for msvc compilers ( #12198 )
...
The MSVC compiler determines the encoding of the source code based on
the BOM of the source code when reading it. If there is no BOM, it
defaults to the local encoding, which is gb2312, codepage 936, on
Simplified Chinese Windows. This can cause errors such as newline
characters in strings.
2025-02-06 09:34:41 -08:00
Ryan C. Gordon
4d63a2b882
io: Renamed src/file to src/io
...
Fixes #11980 .
2025-01-16 08:18:40 -05:00
Semphris
0461180e25
SDL_EVENT_QUIT when no window nor tray
...
SDL_HINT_QUIT_ON_LAST_WINDOW_CLOSE will not fire if there are active tray icons. This impacts only applications that create tray icons, and that at least one icon outlives the last visible top-level window. SDL_EVENT_QUIT will fire when the last active tray is destroyed if there are no active windows.
2024-12-27 09:22:27 -08:00
Semphriss
01b9b0edb7
Add system tray support ( #10873 )
2024-12-24 10:36:39 -08:00
L zard
af2dbbcb53
Merge SDL_wasapi_win32 into SDL_wasapi
2024-12-23 16:54:52 -08:00
Ethan Lee
a0864799f2
GDK: Fix compile_shaders_xbox.bat build events
2024-12-20 00:57:25 -05:00
Ethan Lee
9628549c7c
Xbox buildfixes
2024-12-13 11:34:39 -05:00
Sam Lantinga
6d1dac1404
Removed unused math code from the Visual Studio projects
2024-12-06 16:28:23 -08:00
Semphris
a4852f3a10
SDL_ShowFileDialogWithProperties with more options
2024-12-04 15:10:15 -08:00
Ryan C. Gordon
4745aa3324
asyncio: Windows IoRing support, other tweaks and fixes.
2024-12-03 17:32:20 -05:00
Ryan C. Gordon
e79ce2a200
asyncio: Added async i/o APIs.
2024-12-03 17:32:20 -05:00
Evan Hemsley
119b4fa5f5
GPU: Remove D3D11 backend and allow D3D12 to ingest DXBC ( #11456 )
2024-11-12 10:55:21 -08:00
Sam Lantinga
a923771978
Added SDL_murmur3_32()
2024-09-28 17:19:01 -07:00
Sam Lantinga
398dff7c25
Added support for the HORI licensed Steam Controller
2024-09-18 14:08:32 -07:00
Semphris
9eea8234e6
Add SDL_Process subsystem
2024-09-13 15:19:32 -07:00
Sam Lantinga
4123023d3e
Renamed sdlgpu to gpu
2024-09-11 08:34:51 -07:00
Sam Lantinga
387774ab8a
Build config flags are either defined or undefined, never 0
...
This is for consistency with CMake build configuration
Also added SDL_VIDEO_RENDER_GPU to the non-CMake build configurations
2024-09-05 09:52:40 -07:00
cosmonaut
2e7d5bb429
Add the SDL_GPU API
...
Project Lead: Evan Hemsley <evan@moonside.games >
Co-designer, Metal Port, Console Ports:
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com >
Production, QA, Debug:
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com >
SDL_Render Driver, Bugfixes:
Co-authored-by: Andrei Alexeyev <akari@taisei-project.org >
Additional D3D12 Programming, Bugfixes:
Co-authored-by: Bart van der Werf <bluelive@gmail.com >
Bugfixes and Feedback:
Co-authored-by: Zakary Strange <zakarystrange@gmail.com >
Co-authored-by: meyraud705 <meyraud705@gmail.com >
Co-authored-by: Joshua T. Fisher <playmer@gmail.com >
Co-authored-by: Topi Ritala <ritalat@fastmail.com >
Co-authored-by: David Gow <david@ingeniumdigital.com >
Original API Proposal:
Co-authored-by: Ryan C. Gordon <icculus@icculus.org >
2024-08-29 15:57:29 -07:00
Anonymous Maarten
c298d2024a
Include SDL_build_config.h without a 'build_config/' prefix
2024-08-23 00:51:35 +00:00
Sam Lantinga
001dbc5da8
Added support for raw mouse and keyboard using GameInput on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/10442
2024-08-07 12:19:09 -07:00
Anonymous Maarten
4b3a80bb73
msbuild: add TreatWarningAsError property, and enable it on ci
2024-08-04 21:23:25 +02:00
Anonymous Maarten
f57c597c60
Added SDL_GetWindowFromEvent
2024-08-03 02:37:11 +00:00
Daniel Ludwig
0a678a654e
GDK build: fix project settings and API changes
2024-07-25 11:35:10 +03:00
Sam Lantinga
2ba76dbe80
Simplified SDL_Surface
...
SDL_Surface has been simplified and internal details are no longer in the public structure.
The `format` member of SDL_Surface is now an enumerated pixel format value. You can get the full details of the pixel format by calling `SDL_GetPixelFormatDetails(surface->format)`. You can get the palette associated with the surface by calling SDL_GetSurfacePalette(). You can get the clip rectangle by calling SDL_GetSurfaceClipRect().
SDL_PixelFormat has been renamed SDL_PixelFormatDetails and just describes the pixel format, it does not include a palette for indexed pixel types.
SDL_PixelFormatEnum has been renamed SDL_PixelFormat and is used instead of Uint32 for API functions that refer to pixel format by enumerated value.
SDL_MapRGB(), SDL_MapRGBA(), SDL_GetRGB(), and SDL_GetRGBA() take an optional palette parameter for indexed color lookups.
2024-07-10 00:48:18 -07:00
Brick
fde2378ccd
Refactor alpha blitters, move the SSE41/AVX2 versions into SDL_blit_A.c
2024-07-08 20:59:42 +01:00
Isaac Aronson
735cf5a6f9
Relocate intrinsic modules to src/video/
2024-07-08 10:53:46 -07:00
Isaac Aronson
3e0581c625
Merge upstream and sdl3-blitters
2024-07-08 10:53:46 -07:00
Ryan C. Gordon
4b5309cd98
main: Move SDL_RunApp bits from src/core to src/main.
...
Fixes #10170 .
2024-07-05 08:52:25 -07:00
Sam Lantinga
a938e2b979
Replaced test framework random code with SDL random functions
2024-06-24 11:49:15 -07:00
Sam Lantinga
89cdadf7c3
Added SDL_isinf(), SDL_isinff(), SDL_isnan(), and SDL_isnanf()
2024-06-24 11:49:15 -07:00
Sam Lantinga
679e4471ed
Added the ability to query the keymap for keycodes based on modifier state
2024-06-21 22:06:08 -07:00
Sam Lantinga
d1d484ddbe
Added SDL_srand(), SDL_rand(), and SDL_rand_r() (thanks @JKaniarz!)
...
These are simple random functions that should not be used for serious random number generation.
Fixes https://github.com/libsdl-org/SDL/issues/4968
2024-06-16 07:41:00 -07:00
Ryan C. Gordon
38f0214e8a
audio: Refer to audio devices to "playback" and "recording".
...
Fixes #9619 .
2024-06-15 01:08:12 -04:00
Anonymous Maarten
f3695ef34e
VC: don't import Microsoft.CPP.UpgradeFromVC[67]0.props projects
...
Only thing these do is define a _VC80_UPGRADE macro.
2024-05-24 11:13:40 +02:00