Anonymous Maarten
84039e2514
cmake: use target_link_libraries to pass -Wl,--undefined=WinMain
...
(cherry-picked from commit e2060de714 )
2022-11-29 21:15:21 +03:00
Sam Lantinga
2d24baaad4
Fixed building on Windows with SDL_VIDEO=OFF
...
Fixes https://github.com/libsdl-org/SDL/issues/6562
2022-11-29 09:26:29 -08:00
Sam Lantinga
b7cc4dce70
Fixed bug #6698 - VISA: wrong check sceKernelPollSema
...
(cherry picked from commit f077c69193 )
2022-11-29 08:51:23 -08:00
pionere
0b7a9a8e9f
thread: code style
...
(cherry picked from commit 461a38ff1a )
2022-11-29 08:47:52 -08:00
Sylvain
8cda5102fc
Fixed bug #6698 - VISA: wrong check sceKernelPollSema
2022-11-29 16:16:10 +01:00
pionere
ee13e8c76b
thread: return -1 from SDL_SemWaitTimeout if semaphore is NULL
...
(cherry picked from commit f6db1aba66 )
2022-11-29 09:40:58 -05:00
pionere
fcd7d658dc
thread: fix inconsistent return values
...
- SDL_CreateMutex returns NULL when the creation fails (ngage)
- SDL_SemValue returns 0 when the semaphore is NULL (n3ds)
(cherry picked from commit 6875e1c262 )
2022-11-29 09:28:33 -05:00
Sam Lantinga
89e9f7b42b
Added support for the Xbox Elite controller paddles with firmware version 5.13+
2022-11-28 23:10:02 -08:00
Vasily Khoruzhick
b6c875a923
Add support for the 8BitDo Ultimate Wireless 2.4GHz Controller in DirectInput mode
...
Generated using controller map
2022-11-28 17:48:03 -08:00
Samuel Venable
a65d1bfb14
Fix broken solaris build. (missing brace).
...
missing brace.
2022-11-28 15:51:28 -08:00
Sam Lantinga
37d244ea81
Added support for the 8BitDo Ultimate Wired Controller in DirectInput mode, including the misc button and paddles
2022-11-28 14:49:07 -08:00
Sam Lantinga
a937b5c4ad
Add 8BitDo to the list of Xbox 360 third party vendors
...
Allows detection of the 8BitDo Ultimate Wired Controller
2022-11-28 13:47:30 -08:00
Sylvain Becker
fb0ce375f0
Cleanup add brace ( #6545 )
...
* Add braces after if conditions
* More add braces after if conditions
* Add braces after while() conditions
* Fix compilation because of macro being modified
* Add braces to for loop
* Add braces after if/goto
* Move comments up
* Remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements after merge
* Fix inconsistent patterns are xxx == NULL vs !xxx
* More "{}" for "if() break;" and "if() continue;"
* More "{}" after if() short statement
* More "{}" after "if () return;" statement
* More fix inconsistent patterns are xxx == NULL vs !xxx
* Revert some modificaion on SDL_RLEaccel.c
* SDL_RLEaccel: no short statement
* Cleanup 'if' where the bracket is in a new line
* Cleanup 'while' where the bracket is in a new line
* Cleanup 'for' where the bracket is in a new line
* Cleanup 'else' where the bracket is in a new line
(cherry picked from commit 6a2200823c to reduce conflicts merging between SDL2 and SDL3)
2022-11-28 12:33:03 -08:00
Samuel Venable
0739d237ad
[skip ci] Solaris getexecname() returns argv[0]
...
`argv[0]`/`getexexname()` are not always absolute paths by default and can be modified to anything the developer wants them to be.
Consider using `readSymLink("/proc/self/path/a.out")` instead and `getexecname()` as the fallback, since the symlink will always be the correct absolute path (unless /proc is ot mounted, but it is by default on Solaris and Illumos platforms).
(cherry picked from commit 4f5e9fd5bd )
2022-11-27 21:38:01 -05:00
Markus Mittendrein
8145212103
SDL_ResampleAudio: Fix float accumulation error
...
While 78f97108f9 reduced the accumulation error, it was still big enough to cause distortions.
Fixes #6196 .
2022-11-27 21:06:52 -05:00
Joshua Root
2df39e64ab
Fix build with Xcode < 7
...
The _Nullable attribute is not available in older versions.
(cherry picked from commit 9a64aa6f95 )
2022-11-26 20:36:54 -08:00
Sam Lantinga
8fddf146bf
Temporary hack to address performance issues in https://github.com/libsdl-org/SDL/issues/6581#issuecomment-1327987916 (thanks @icculus!)
...
(cherry picked from commit 9c8369e097 )
2022-11-26 13:11:26 -08:00
Ryan C. Gordon
3f5593d613
cocoa: Patched to compile on macOS SDK < 10.10.
...
Fixes #6586 .
(cherry picked from commit fa5adcafd5 )
2022-11-26 13:59:44 -05:00
Anonymous Maarten
dcd1252368
cmake: test for lsx and lasx intrinsics for loongarch
2022-11-25 21:50:43 +01:00
Anonymous Maarten
edb75bc29e
cmake: make all assembly options depend on SDL_ASSEMBLY and architecture
2022-11-25 21:50:25 +01:00
Anonymous Maarten
660cec69b1
cmake: find libudev library so it gets priority
2022-11-25 21:37:42 +01:00
Anonymous Maarten
a2611edcf3
cmake: add support for some BSD's wscons input
2022-11-25 21:37:36 +01:00
Michael Fitzmayer
e19c532ebf
Add bitdraw.h, remove non-working stub class
...
(cherry picked from commit 67f31a19a8 )
2022-11-24 13:13:08 -08:00
Anonymous Maarten
e426617c9c
cmake: add X11 include dir to check dirs
2022-11-24 21:00:26 +01:00
Sylvain Becker
192cdf3d04
SDL_mfijoystick.m: remove VLA, so that projects can be built with error on vla
2022-11-24 18:33:50 +03:00
Ozkan Sezer
64a5e7be98
added missing FGREP to Makefile.in. fixed syntax. regenerated configure.
2022-11-24 17:00:20 +03:00
Frank Praznik
66bd15555c
wayland: Fix build when not using the shared Wayland libraries
...
Explicitly include the Wayland protocol headers when statically linking against the Wayland libraries or older system headers might be used instead of the local versions.
(cherry picked from commit 836eb22442 )
2022-11-24 03:01:42 -08:00
Sam James
4c7156c1e6
Avoid use of deprecated egrep/fgrep
...
GNU grep 3.8 emits a deprecation warning on use of egrep/fgrep.
Signed-off-by: Sam James <sam@gentoo.org >
(cherry picked from commit 3e7952ce8a )
2022-11-24 02:59:41 -08:00
Joshua Root
33e5de31d8
vulkan_metal.h: Make compatible with ObjC ARC
...
Fixes #6598
(cherry picked from commit 239423e205 )
2022-11-23 17:39:26 -08:00
Frank Praznik
3eaf56894e
wayland: Fix libdecor_dispatch signature
...
The function returns an int, not a bool.
(cherry picked from commit f47169fcba )
2022-11-23 15:17:52 -08:00
Joshua Root
242ce20cbf
SDL_mfijoystick.m: fix build with Xcode < 9
...
Fixes #6601 .
(cherry picked from commit 53ca1f7702 )
2022-11-23 12:48:26 -08:00
Joshua Root
f52e7199df
Check build-time SDK in LoadMainMenuNibIfAvailable
...
Fixes building against OS X 10.7 SDK.
(cherry picked from commit f8cebeea59 )
2022-11-23 12:28:43 -08:00
Joshua Root
e12c831b15
SDL_cocoaopengl.h: ensure CVDisplayLinkRef is defined
...
The typedef seems to be pulled in coincidentally with newer SDKs, but
older ones need to import the header explicitly.
(cherry picked from commit d2910904fb )
2022-11-23 12:22:40 -08:00
Ozkan Sezer
cd399caf6f
fix dynapi after SDL_GDKSuspendComplete addition.
2022-11-23 22:50:10 +03:00
Ciro Mondueri
f6144dfe03
adds GDK suspend/resume basic handling ( #6596 )
2022-11-23 11:41:14 -08:00
SDL Wiki Bot
ac2fcfcb62
Sync SDL2 wiki -> header
2022-11-22 23:21:36 +00:00
Ryan C. Gordon
4ac2d45a06
Testing the wiki, disregard this commit.
2022-11-22 18:12:43 -05:00
Sam Lantinga
dce6ed56d7
Removed G29 from controller_type.c
...
We don't want the G29 to show up as a gamepad, Steam will create a virtual Xbox controller for it, which breaks racing games.
2022-11-22 10:56:44 -08:00
Sam Lantinga
e3d430b83e
Revert "Added Linux mappings for the Logitech G29 in PS3 and PS4 modes"
...
This reverts commit 33a68f575f .
We don't want the G29 to show up as a gamepad, Steam will create a virtual Xbox controller for it, which breaks racing games.
2022-11-22 10:53:28 -08:00
Ryan C. Gordon
511bab5bbf
.wikiheaders-options: Move SDL2 documentation to a subdirectory.
...
SDL3 will be the main thing now.
2022-11-22 13:05:08 -05:00
Anonymous Maarten
156bf7e6aa
android.mk: LOCAL_EXPORT_C_INCLUDES does not need to add include subfolder
2022-11-22 09:41:23 -08:00
Sam Lantinga
938b720a9e
Update SDL info and Xcode marketing version to 2.27.0
2022-11-22 09:19:21 -08:00
Sam Lantinga
44975d40ef
Update SDL info and Xcode marketing version with version update scripts
2022-11-22 09:18:05 -08:00
Sam Lantinga
ea8f8b6dc3
Updated to version 2.27.0 for development
2022-11-21 16:36:10 -08:00
Sam Lantinga
0bfeed061b
Updated to version 2.26.0 for release
release-2.26.0
2022-11-21 16:15:58 -08:00
Sam Lantinga
d167cd6715
Added the Gunfighter Mk.III ‘Space Combat Edition’ as a flight stick
2022-11-21 09:02:10 -08:00
Sam Lantinga
8b20b568b0
Don't report battery level for disconnected batteries
...
Fixes https://github.com/libsdl-org/SDL/issues/6536
2022-11-21 07:42:14 -08:00
Sam Lantinga
8ae46a49ea
Save the version in VERSION.txt instead of VERSION
...
Fixes https://github.com/libsdl-org/SDL/issues/6558
2022-11-21 06:57:02 -08:00
Sam Lantinga
802c624ab3
Strip trailing newline when reading the VERSION file
2022-11-20 14:37:05 -08:00
Ozkan Sezer
3bc4bad8fb
add missing strcasestr checks to cmake and autotools build systems,
...
and update config files.
2022-11-20 14:20:33 -08:00