Ryan C. Gordon
cd0cf8b855
SDL_audio.h: tweak SDL_OpenAudioDevice() docs to fix a weird wordwrap issue.
...
Fixes https://github.com/libsdl-org/sdlwiki/pull/816 .
("Fixes.")
2025-07-01 13:38:16 -04:00
evgenydrainov
2bc3ec44b1
keyboard: Add reference to SDL_Keymod in the comments
2025-06-24 07:36:22 -07:00
Mitch Cairns
e4475d1868
Fixed Nintendo Switch thumbstick calibration
...
(cherry picked from commit 3a6f9e01f8
)
2025-06-22 15:29:12 -07:00
Sam Lantinga
6a71328638
Fixed Nintendo Switch Pro thumbstick calibration
...
Fixes https://github.com/libsdl-org/SDL/issues/13246
(cherry picked from commit 038a3806eb
)
2025-06-21 20:06:08 -07:00
Wohlstand
6701f938f7
Vita Render: Limit the scope of cliprect to viewport
...
Don't allow cliprect be larger than viewport's scope
2025-06-20 13:15:57 -07:00
Wohlstand
1c09a7117a
Vita: Fixed absence of clipping when viewport is set
...
#13034
2025-06-20 13:15:57 -07:00
ceski
9eb50a906a
Read Switch controller gyro/accel sensitivity coeffs (SDL2)
...
These vary by controller, so using the stored values should improve the accuracy of the sensor data.
2025-06-13 12:18:12 -07:00
SDL Wiki Bot
027d46f03a
Sync SDL2 wiki -> header
...
[ci skip]
2025-06-13 17:09:05 +00:00
Son Phan Trung
3416296366
README-touch.md: fix header separators
2025-06-06 08:28:10 -07:00
Wes Lord
01c3ccd541
Move comment in .wikiheaders-options to own line
...
Was not parsing correctly, causing an error
2025-06-02 07:21:42 -04:00
Ryan C. Gordon
3c08172d06
Revert "opengles2: Restore previous default texture_formats."
...
This reverts commit 9f7ccbe8d4
.
Fixes #13109 .
2025-06-01 03:21:36 -04:00
Francisco Javier Trujillo Mata
d0c2d8bc40
Fix wrong callback type
...
(cherry picked from commit c89357bf60
)
2025-05-20 11:11:47 -07:00
Sam Lantinga
33eb167da8
Fixed rare crash trying to interrupt SDL_WaitEvent()
...
Fixes https://github.com/libsdl-org/SDL/issues/12797
(cherry picked from commit 992e4c59bd
)
2025-05-19 14:24:26 -07:00
Joe [ReRezd]
4b4f6b3e22
Fix: GameCube controller adapter hotplug not working
...
SDL_PrivateJoystickAdded was called before setting the InstanceId in the adapters ctx->joysticks array. This would eventually broadcast the SDL_EVENT_JOYSTICK_ADDED event with the new InstanceId, if your program listens for the added events and opens joysticks at that point it would always fail because there would be no matching InstanceId in the ctx->joysticks array.
(cherry picked from commit afd1e51023
)
2025-05-19 08:26:25 -07:00
Sam Lantinga
2163887f29
Define illegal_instruction() when it will be actually used
...
(cherry picked from commit 29d2116495
)
2025-05-08 12:53:33 -07:00
Sam Clegg
c0f78dee5e
[emscripten] Remove reference to Module['createContext']
...
Backported from https://github.com/libsdl-org/SDL/pull/12970
2025-05-06 14:46:19 -07:00
A. Wilcox
17e6208c1b
cpuinfo: Use auxv for AltiVec on Linux if possible
...
The SIGILL handler is not very reliable and can cause crashes.
Linux provides the CPU's AltiVec support status in getauxval.
(cherry picked from commit 7490471796
)
2025-05-04 13:55:59 -07:00
Ozkan Sezer
157f894d5d
don't prototype strdup() for __clang_analyzer__ case in windows builds.
...
Fixes: https://github.com/libsdl-org/SDL/issues/12948 .
(cherry picked from commit 17bba029ba
)
2025-05-04 20:47:28 +03:00
Derek Schuff
a220e7c422
Port #12581 to SDL2
...
This fixes undefined behavior resulting from adding offsets to nullptr.
2025-05-01 21:36:23 -07:00
Sam Lantinga
2442c85cb8
Call IOHIDDeviceClose() if needed in hid_close() on macOS
...
Unregistering the input report callback marks the device as disconnected, so IOHIDDeviceClose() would never be called if the device wasn't already disconnected when hid_close() was called.
Fixes https://github.com/libsdl-org/SDL/issues/12255
2025-04-29 11:21:26 -07:00
Sam Lantinga
5b951141d2
Revert "Don't leak device handle in macOS 10.10 or newer"
...
This reverts commit 5925c27efb
.
Fixes https://github.com/libsdl-org/SDL/issues/12807
2025-04-29 11:07:29 -07:00
Cameron Gutman
15fd3fcdc2
events: Fix undefined behavior when disabling some event types
...
Shifting a signed int left by 31 is UB.
2025-04-29 00:30:41 -05:00
Sam Lantinga
45b01d16b1
Fixed reliability of initializing Switch controllers on macOS
...
It looks like both macOS (15.1.1) and SDL are trying to talk to the controller at the same time, which can cause interleaved replies or even locking up the controller. Waiting a bit before talking to the controller seems to take care of this.
2025-04-28 20:21:53 -07:00
SternXD
433810c58d
SDL2: Update from Visual Studio 2019 to Visual Studio 2022
2025-04-22 20:59:26 -07:00
SDL Wiki Bot
916ddb1ef8
Sync SDL2 wiki -> header
...
[ci skip]
2025-04-22 21:18:56 +00:00
Sam Lantinga
1c75cb4f8a
Revert "Sync SDL2 wiki -> header"
...
This reverts commit 26e946ef08
.
Stop it Skynet!
2025-04-22 14:17:22 -07:00
SDL Wiki Bot
26e946ef08
Sync SDL2 wiki -> header
...
[ci skip]
2025-04-22 17:22:42 +00:00
Petar Popovic
035518d065
SDL_BlitSurface() comment: only dstrect is modified in function
2025-04-22 10:22:27 -07:00
Boris I. Bendovsky
40b1eac541
[SDL2] Fix using of DXSDK_DIR in older CMake
...
- Remove duplicate 'dollar' symbol in the path
- Use command 'file' to normalize file paths
2025-04-22 10:12:01 -07:00
Ozkan Sezer
bfab0a968f
SDL_cpuinfo.h: only include immintrin.h for x86 targets.
...
Reference issue: https://github.com/libsdl-org/SDL_image/issues/537
Reference issue: https://github.com/libsdl-org/SDL_mixer/issues/648
2025-04-03 18:55:04 +03:00
Sam Lantinga
f0a8e09f7c
Skip the Jack audio server test
...
The Jack server might not be running even though the libraries are installed.
2025-03-30 21:31:38 -07:00
SDL Wiki Bot
2e4c12cd2c
Sync SDL2 wiki -> header
...
[ci skip]
2025-03-27 19:20:39 +00:00
Sam Lantinga
3e47181800
Default SDL_HINT_ACCELEROMETER_AS_JOYSTICK to 0 on Linux
...
The Linux joystick driver supports associating sensor devices with the related controller device, so enable that by default.
Fixes https://github.com/libsdl-org/SDL/issues/12043
2025-03-25 09:07:10 -07:00
Anonymous Maarten
8436ce98b4
tests: port failing SDL_Renderer test from pysdl2 to testautomation
2025-03-21 00:55:52 +01:00
Carl Åstholm
a8f0eb4c33
emscripten: Don't use legacy JS library functions for assertions
...
(cherry picked from commit 54f5b73333
)
2025-03-20 16:36:02 -07:00
Anonymous Maarten
069eb012aa
tests: port failing SDL subsystem test from pysdl2 to testautomation
2025-03-20 20:30:18 +01:00
Anonymous Maarten
7d8a6f1603
tests: port failing SDL_Renderer test from pysdl2 to testautomation
2025-03-20 20:30:18 +01:00
Dragon-Baroque
d63b3376a4
The posix4 library has been merged into the libc library
...
Backported from commit 07e4dea693
.
Reference issue: https://github.com/libsdl-org/SDL/issues/12588 .
2025-03-20 09:47:20 +03:00
Sam Lantinga
52146cf067
Fixed raw input device GUIDs changing randomly between runs
...
On Windows 11, apparently HidD_GetManufacturerString() and HidD_GetProductString() can return TRUE without actually filling in any string data.
Fixes https://github.com/libsdl-org/SDL/issues/12566
(cherry picked from commit 4fc9509ab7
)
2025-03-17 13:57:35 -07:00
Sam Lantinga
46a51b4298
Fixed crash if info->path is NULL
...
(cherry picked from commit 715301cef5
)
2025-03-17 09:47:53 -07:00
Anonymous Maarten
4f488b9be2
tests: port failing window test from pysdl2 to testautomation
2025-03-16 18:15:16 -07:00
Anonymous Maarten
f48a96a976
test: actually run rect tests
2025-03-14 21:40:31 +01:00
Anonymous Maarten
39bb71c442
tests: port failing SDL_Rect tests from pysdl2 to testautomation
2025-03-14 17:29:27 +01:00
Anonymous Maarten
177fb9cb6c
tests: port failing SDL_Hint tests from pysdl2 to testautomation
2025-03-14 17:29:27 +01:00
SDL Wiki Bot
fc536dcb7e
Sync SDL2 wiki -> header
...
[ci skip]
2025-03-12 19:23:45 +00:00
Sam Lantinga
1caae3e9e4
Fixed sscanf("026", "%1x%1x%1x", &r, &g, &b)
...
Fixes https://github.com/libsdl-org/SDL/issues/12510
(cherry picked from commit be6ed6e9c4
)
2025-03-10 15:45:31 -07:00
SDL Wiki Bot
22a87a22ca
Sync SDL2 wiki -> header
...
[ci skip]
2025-03-07 17:02:06 +00:00
Neal Gompa
6be87ceb33
pipewire: Ensure that the correct struct is used for enumeration APIs
...
PipeWire now requires the correct struct type is used, otherwise
it will fail to compile.
Reference: 188d920733
Fixes: https://github.com/libsdl-org/SDL/issues/12224
(cherry picked from commit d35bef64e9
)
2025-03-06 14:36:44 -05:00
Sam Lantinga
ab44451578
Added support for the "%n" sscanf format specifier
...
(cherry picked from commit 6980325310
)
2025-02-25 08:07:33 -08:00
SDL Wiki Bot
52ac07d327
Sync SDL2 wiki -> header
...
[ci skip]
2025-02-25 15:55:15 +00:00