Commit Graph

12169 Commits

Author SHA1 Message Date
Anonymous Maarten
18ecd2ccad ci: bump to NetBSD 10.1
(cherry picked from commit 98c447802f)
2025-01-23 00:32:28 +03:00
Tomasz Pakuła
ba7ec31927 Use proper polar direction when creating FF_RUMBLE effect
Uses proper polar direction of 90 degrees. Previous value probably came from mistakenly using spherical system default.

(cherry picked from commit 5bf8955b25)
2025-01-20 16:53:23 -08:00
Sam Lantinga
72a9e5edad Added support for the 8BitDo Ultimate 2C Wireless in Bluetooth mode
Closes https://github.com/libsdl-org/SDL/pull/11415

(cherry picked from commit c7d1fd90ea)
(cherry picked from commit 4b19f7e012)
2025-01-18 07:07:33 -08:00
ROllerozxa
43108beb5b Vita: Fix off-by-one error for synthetic mouse events
(cherry picked from commit cdc5483cf9)
(cherry picked from commit 878ea48b60)
2025-01-16 16:52:51 -08:00
Ozkan Sezer
63521cb9a7 fix emscripten builds
(cherry picked from commit ab8bd0ef86)
2025-01-16 18:50:24 +03:00
Sam Lantinga
48f21f434f Fixed detection of function keys on Emscripten
Fixes https://github.com/libsdl-org/SDL/issues/11973

(cherry picked from commit 67382e9c83)
(cherry picked from commit 9f25821ffd)
2025-01-16 07:32:53 -08:00
Anonymous Maarten
90c7f51d8a ci: bump FreeBSD to 14.2
[sdl-ci-filter netbsd]
[sdl-ci-filter freebsd]
(cherry picked from commit db97da4ccb)
2025-01-15 06:20:00 +03:00
Sam Lantinga
5d3a382eb7 Fixed potentially overlapping memcpy() to use memmove()
(cherry picked from commit 91b76f5c29)
2025-01-14 14:34:52 -08:00
Frank Praznik
b895741422 wayland: Only apply the toplevel bounds to resizable windows
(cherry picked from commit 0efeb82a28)
2025-01-14 12:10:05 -08:00
Frank Praznik
66ce42b7d2 wayland: Apply toplevel bounds to windows
Apply the supplied xdg-toplevel bounds to resizable windows during initial mapping. Libdecor functionality will have to be added separately, as the functionality needs to be added to the library first.

(cherry picked from commit e5a3fcd071)
2025-01-14 12:10:05 -08:00
Daniel Tang
f4f20c9255 Let SDL_IM_MODULE=fcitx override Wayland as a workaround to fix key repetition detection (#11859)
(cherry picked from commit db2997548c)
2025-01-14 12:09:42 -08:00
Ryan C. Gordon
f71979dcb3 coreaudio: Workaround for crash when disconnecting a bluetooth audio device.
Our understanding of what's going on here might be incorrect, but it seems
like we're getting this callback at a point where we shouldn't be able to,
with a device we've already closed.

If we're on the wrong track, this code should still be harmless; it just
verifies a device is still in the open list before dereferencing it.

Reference Issue #10432.

(cherry picked from commit 20574c016a)
2025-01-14 12:08:58 -08:00
Joshua Root
81ce8d659e prepare_audioqueue: legacy OS compatibility fix
(cherry picked from commit 6024c2731f)
2025-01-14 12:08:58 -08:00
Joshua Root
732f779606 windowWillStartLiveResize: legacy OS compatibility fix
(cherry picked from commit d58f026827)
2025-01-14 12:08:58 -08:00
Joshua Root
a5c518bf71 showAlert: legacy OS compatibility fix
(cherry picked from commit ed0eb7714a)
2025-01-14 12:08:58 -08:00
Sam Lantinga
fa24d868ac Updated to version 2.30.11 for release release-2.30.11 2025-01-01 09:09:38 -08:00
Sam Lantinga
c38a40eff9 Fixed N3DS_TOUCH_ID, 0 is an invalid touch ID
(cherry picked from commit adb51845af)
2025-01-01 09:07:08 -08:00
Sam Lantinga
439bb5377c Revert "Backed out Vita touch ID change for SDL2"
This reverts commit a326ebce61.

It turns out that 0 is an invalid touch ID for SDL2, per the documentation for SDL_GetTouchDevice()

(cherry picked from commit 5a25183b39)
2025-01-01 09:07:08 -08:00
Sam Lantinga
e38ea9df0c Backed out Vita touch ID change for SDL2
0 is still a valid touch ID in SDL2 and shouldn't be changed at this point

(cherry picked from commit a326ebce61)
2025-01-01 08:25:25 -08:00
Sam Lantinga
6955c981bc Updated copyright for 2025 2025-01-01 07:48:45 -08:00
Blaž Tomažič
fb3bd3b233 Use pthread_setname_np also on Android
Set thread name on Android the same way as we do on Linux.

Acording to Bionic source code this function is available since 2013 [1] and
hase the same signature.

[1] 2a1bb4e646

(cherry picked from commit e79b0ce2e4)
2024-12-27 08:09:03 -08:00
Ryan C. Gordon
847f828e7f misc: Fixed typo in iOS error message.
(cherry picked from commit 96b4535cc7)
2024-12-26 23:39:32 -05:00
Ryan C. Gordon
ec0ba62326 misc: Make SDL_OpenURL work with VisionOS, tvOS, etc.
(cherry picked from commit 7bbe6025be)
(cherry picked from commit e55a23050e)
2024-12-26 23:39:27 -05:00
Ryan C. Gordon
76816a3bfc misc: Fix SDL_OpenURL on newer iOS releases.
Apparently as of iOS 18.2, the deprecated API we were using just refuses to
work at all.

Fixes #11728.

(cherry picked from commit ffed1c50c0)
(cherry picked from commit c6e1806ba9)
2024-12-26 23:39:23 -05:00
Sam Lantinga
ea873d322a Don't overwrite non-CRC gamepad mapping with a new mapping that specifies a CRC
Fixes https://github.com/libsdl-org/SDL/issues/11723

(cherry picked from commit 1413bfb185)
(cherry picked from commit ddfdb0ca7b)
2024-12-26 20:21:00 -08:00
Sam Lantinga
1c3ad751de Corrected CoreAudio surround sound channel layouts
Fixes https://github.com/libsdl-org/SDL/issues/11709

(cherry picked from commit b2178857dc)
(cherry picked from commit 348bb53cc1)
2024-12-24 15:11:16 -08:00
Sam Lantinga
eccd76a6ac Allow rendering during the modal resize loop on macOS
Fixes https://github.com/libsdl-org/SDL/issues/11508

(cherry picked from commit 9a43c08146)
(cherry picked from commit 884c8b684a)
2024-12-23 11:56:15 -08:00
Wolfywolfy
2e99b6e9ce Remove EXTRA_CFLAGS.
(cherry picked from commit 9491389baf)
2024-12-20 15:19:46 -08:00
Sam Lantinga
e305da0baf Enable high refresh rates on iOS
Fixes https://github.com/libsdl-org/SDL/issues/7518

(cherry picked from commit 835b6e0c1a)
(cherry picked from commit 974098464f)
2024-12-18 14:43:50 -08:00
Sam Lantinga
ca8e33375b Fixed crash if the controller product name is NULL
This happens when the Razer Synapse software emulates a controller with a keyboard

(cherry picked from commit 7117d545a3)
(cherry picked from commit 7f880c9121)
2024-12-17 16:55:36 -08:00
Ryan C. Gordon
4568e64d9e emscriptenaudio: Removed comment about Firefox not supporting userActivation.
It does now, and has since Firefox 120 (around November 2023).

(cherry picked from commit ad93f50ee6)
2024-12-12 10:54:10 -05:00
Sam Lantinga
5b3ce972e0 Fixed Chinese locales on PSP (thanks @ccawley2011!)
(cherry picked from commit 962268ca21)
(cherry picked from commit 9791069d78)
2024-12-10 14:48:31 -08:00
Anonymous Maarten
bf3a264202 Build optimized stripped MinGW binary releases
(cherry picked from commit 3c142abcb2)
2024-12-09 17:22:15 +01:00
Anonymous Maarten
fc2fd42197 Add build-release.py updates from satellite libraries
[ci skip]
2024-12-08 04:32:25 +01:00
Anonymous Maarten
9c821dc21c Add test sources to mingw release artifact release-2.30.10 2024-12-07 02:05:30 +01:00
Sam Lantinga
826c56b67c Updated to version 2.30.10 for release 2024-12-06 14:35:53 -08:00
Anonymous Maarten
f3245a6fed vc: bump CMake compatibility version of sdl2-config.cmake
(cherry picked from commit c46bec009b)
2024-12-05 04:30:54 +01:00
Frank Praznik
43e9c5b247 wayland: Check the returned display value for null
In reality, this condition will never occur, since the index is checked before calling the display retrieval function, but aggressive LTO with jump threading can generate a warning if this isn't explicitly checked.

(cherry picked from commit 91bb1bb6fd)
2024-12-03 11:54:11 -05:00
Sam Lantinga
6d9ab4c984 Fixed potential buffer overflow
(cherry picked from commit 6aab5a089d)
(cherry picked from commit e539135104)
2024-12-03 08:34:49 -08:00
Christian Ehrhardt
5418740c4a dynapi: order for a reproducible build
The objfiles of different builds show various differences in
the calls to SDL_DYNAPI_entry elements. This is generated
dynamically by gendynapi.pl which uses an unordered opendir/readdir
pair. To make the build reproducible and thereby e.g. debugging
easier change this to be used in an ordered fashion.

Fixes #11565.
2024-12-02 09:52:30 -08:00
staphen
0251b14be3 Fix order of events in case audio buffer size changes
(cherry picked from commit a4ec0b1531)
2024-11-28 22:29:10 +03:00
Ivan Epifanov
2e43a69a5c Vita: implement mousewheel and buttons 4/5
(cherry picked from commit 6428cee892)
2024-11-27 08:24:08 -08:00
Peter Seiderer
056a4a0960 DirectFB: fix DirectFB_SetTextureScaleMode() declaration
Fixes:

  src/video/directfb/SDL_DirectFB_render.c: In function ‘DirectFB_CreateRenderer’:
  src/video/directfb/SDL_DirectFB_render.c:1153:35: error: assignment to ‘void (*)(SDL_Renderer *, SDL_Texture *, SDL_ScaleMode)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
   1153 |     renderer->SetTextureScaleMode = DirectFB_SetTextureScaleMode;
        |                                   ^

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Notes:
  - declaration was just recently changed by commit 'Fix warning for Android
    NDK compiler: "function declaration without a prototype is deprecated in
    all versions of C [-Wstrict-prototypes]"', see
    ccade50587
(cherry picked from commit b64540dd66)
2024-11-27 08:21:58 -08:00
Sam Lantinga
1bb627514d Fixed build
(cherry picked from commit a5da9be5e6)
2024-11-25 05:01:04 +03:00
Starbuck5
1e3465dc99 Speed up full-surface fills
(cherry picked from commit 7a3f5ef129)
(cherry picked from commit 9f07ac8bba)
2024-11-24 17:45:52 -08:00
Anonymous Maarten
2f873636c7 cmake: ios and tvos applications need to link to SDL2main library
Backport of 52090046fe
2024-11-24 00:09:55 +01:00
Anonymous Maarten
cb3e9578e3 GDK: Fix msbuild project for latest Windows GDK desktop release 2024-11-24 00:04:52 +01:00
Anonymous Maarten
eecf3aab80 Fix -Wdeclaration-after-statement warnings
(cherry picked from commit 248cb3ca9c)
2024-11-23 23:45:19 +01:00
Anonymous Maarten
779a6637b2 ci: setup-gdk-desktop needs build-scripts/setup-gdk-desktop.py 2024-11-23 23:42:35 +01:00
Anonymous Maarten
482ff3b911 ci: add setup-gdk-desktop action
backport of 31b3f5ea79
2024-11-23 23:30:38 +01:00