Ryan C. Gordon
e986c7984b
wasapi: Fixed incorrect assertions.
...
Fixes #6795 .
(cherry picked from commit 12486e144be0e7a37abd87b8bf90547a992ff66b)
2022-12-12 16:08:52 -05:00
Frank Praznik
dfd7efaf13
wayland: Set xdg surface geometry
...
It was previously thought that these function calls were unnecessary as the initial bug and reproduction case that necessitated their addition seemed to be fixed, but apparently there are still cases where this needs to be set explicitly. Set the xdg surface geometry at creation time and when the window size changes.
Partially reverts #6361 . This is not needed in the libdecor path, as libdecor calls this for the content surface internally.
(cherry picked from commit 90a964f132c63b07cf85e5687041d214fdea60f6)
2022-12-12 11:22:18 -08:00
Sam Lantinga
802b5ef7dc
Added support for the STRIKEPAD PS4 Grip Add-on to the HIDAPI driver
...
(cherry picked from commit 618340bf990512247ed29a1beb38606e371d60e8)
2022-12-12 10:56:08 -08:00
Pierre Wendling
e580e087ff
N3DS: Backport semaphore fixes from #6776 .
2022-12-11 17:09:28 -08:00
nfarid
b79732b967
cmake: use FindALSA.cmake to find ALSA library
2022-12-11 23:23:45 +01:00
Sylvain
faa7e3cc2e
Update DYNAPI SDL_WinRTRunApp() prototype which was wrong (see #6783 )
2022-12-10 19:22:27 +01:00
Sylvain
5efc9bd194
SDL_dynapi_procs: fixed SDL_UIKitRunApp prototype (see #6783 )
2022-12-10 19:22:08 +01:00
Ryan C. Gordon
4bae75387a
docs: Note that you don't need to free SDL_GetDefaultCursor's results.
...
Reference Issue #6777 .
(cherry picked from commit 16f8dfcef944019ce4474061aa06c2a1997e601e)
2022-12-09 22:09:39 -05:00
Sam Lantinga
f57776836f
Fixed build
2022-12-09 10:22:18 -08:00
Sam Lantinga
569fa3f57f
Added test event logging for SDL_WINDOWEVENT_ICCPROF_CHANGED and SDL_WINDOWEVENT_DISPLAY_CHANGED
2022-12-09 10:13:18 -08:00
Sam Lantinga
be3b1cff0b
Added logging for SDL_DISPLAYEVENT_MOVED
2022-12-08 17:03:29 -08:00
Sam Lantinga
ab479b4961
Make sure the display list is up to date for window placement
2022-12-08 17:01:18 -08:00
Sam Lantinga
264da8c127
Added SDL_DISPLAYEVENT_MOVED to detect when display positioning changes
2022-12-08 12:46:13 -08:00
Sam Lantinga
cfc7cac3c9
Fixed memory leak when removing existing displays
2022-12-08 12:43:23 -08:00
Frank Praznik
8b74be464f
wayland: Handle the Num Lock and Caps Lock modifiers via modifier events
...
Num Lock and Caps Lock always need to be explicitly handled by the modifier handler function, or they won't be correctly set if active at application startup, or if the lock state is changed while the application lacks focus since a key press for these keys will never be received. In these cases, the internal SDL modifier state can end up the inverse of the actual modifier state.
(cherry picked from commit 653e484da17d773f40bff94121a23a3b38f47a0a)
2022-12-08 09:30:22 -08:00
Sam Lantinga
fc689a6cb3
Fixed build
2022-12-07 16:06:17 -08:00
Sam Lantinga
b4d547905d
Use the correct name for the DualSense controllers
...
(cherry picked from commit 9a6bcca6b8db999217f157dab8c44bf27b0a8eb4)
2022-12-07 14:54:00 -08:00
Sam Lantinga
4ee36a9474
Added support for the DualSense Edge paddles
...
(cherry picked from commit 9339085593dc20b1f003f26b3c40615cf04504b0)
2022-12-07 14:48:36 -08:00
Sam Lantinga
c2b2f2a71e
Clarified where the paddle locations are
...
(cherry picked from commit ea714956b6e6851a279d1334309dd17b6d73cadc)
2022-12-07 14:47:07 -08:00
Sam Lantinga
d1b4810542
Fixed centering the D-pad on some joysticks
...
Fixes https://github.com/libsdl-org/SDL/issues/6767
2022-12-05 13:36:51 -08:00
Ozkan Sezer
bcccbbd894
tests: avoid redefinition warnings for MSVC _CRT_???_NO_DEPRECATE macros
2022-12-05 00:35:32 +03:00
Ozkan Sezer
4e465f25d0
reverted const removal from SDL_NewAudioStream in commit d0bbfdbfb
.
2022-12-04 12:55:15 +03:00
Max Bachmann
7ac66972b7
Detect Logitech PRO Racing Wheel as wheel
...
(cherry picked from commit 5650046f931e9b1d7d7f4a1867e6e1ed75a5e7c5)
2022-12-03 08:22:05 -08:00
Sylvain
3e9ae3ea64
Fix wrong clang-tidy modification. This is an integer division. Thanks @meyraud705 (see PR #6725 )
2022-12-03 13:39:03 +01:00
Sylvain
0a91a793cf
Fix Conditional jump or move depends on uninitialised value(s)
...
eg ./testsprite2 --trackmem
2022-12-02 21:13:40 +01:00
Sam Lantinga
07d6d116ed
Commented out syntax that causes Visual Studio 2019 to complain on every edit
...
(cherry picked from commit 4713db1484c5519967b7e1dc2a00ee0b36853428)
2022-12-02 00:43:46 -08:00
Frank Praznik
b5483f2c68
Fix formatting on Wayland and Pipewire function signatures
...
Fixes the formatting on some function signatures that clang-format missed.
(cherry picked from commit 378b1c286a9c3206e827a47f0147384e92c4c2b2)
2022-12-01 15:19:50 -08:00
Ozkan Sezer
b990e9145b
build fixes after d0bbfdbfb8
2022-12-02 02:13:59 +03:00
Sam Lantinga
3bdc62215e
Fixed Apple build after d0bbfdbfb8
2022-12-01 15:11:29 -08:00
Sam Lantinga
423c558e44
Detect the G923 (Xbox style) and PXN V900 (PS3 mode) as wheels
...
(cherry picked from commit 7237c5649994d2b2c2b364c3b116a6db80ea671d)
2022-12-01 14:44:52 -08:00
Sam Lantinga
42238f88ea
Fixed build after d0bbfdbfb8
2022-12-01 13:28:48 -08:00
Pierre Wendling
d0bbfdbfb8
Clang-Tidy fixes ( #6725 )
...
(cherry picked from commit 3c501b963dd8f0605a6ce7978882df39ba76f9cd)
2022-12-01 13:08:50 -08:00
Sam Lantinga
e29c0661cc
Removed check for _HAVE_STDINT_H, which nobody defines
...
Fixes https://github.com/libsdl-org/SDL/issues/6619
2022-12-01 12:54:02 -08:00
Ozkan Sezer
e57554ea65
SDL_main.h: added field to SDL_GDKSuspendComplete documentation.
2022-12-01 20:37:00 +03:00
Sylvain
09ee811f4b
Small format changed (using clang-format 15.0.2-1)
...
(cherry picked from commit 778b8926b4808f0642a331ed84a9e8e19899b6db)
2022-12-01 08:29:15 -08:00
Ozkan Sezer
b067ab9202
restore SDL_malloc.c original formatting.
...
(cherry picked from commit 45025799b75f544251f4a853e1c3f206243f0109)
2022-11-30 18:18:06 -08:00
Sam Lantinga
6e40c7a9b8
Added support for the Logitech Cordless Precision PS3 controller
2022-11-30 17:03:29 -08:00
Sam Lantinga
01541bc350
Added support for the HORIPAD Pro for Xbox Series X
2022-11-30 16:42:00 -08:00
Sam Lantinga
4504c10f3b
Re-enabled support for third party PS3 controllers
2022-11-30 16:37:20 -08:00
Sam Lantinga
7b1000013e
Reverted code formatting for Apple platforms
...
We didn't get the merge right, and rather than tease out exactly what happened, I'm just reverting for now.
2022-11-30 15:51:17 -08:00
Sam Lantinga
9e997cc787
Fixed Victrix FS Pro V2 controller hang on reboot
2022-11-30 15:39:10 -08:00
Sam Lantinga
d87048fd5a
Fixed crash if GetRectDisplayIndex() is called before SDL_VideoInit()
2022-11-30 14:37:34 -08:00
Sam Lantinga
6926d046c0
Fixed build after cherry-pick of 5750bcb174300011b91d1de20edb288fcca70f8c from SDL3
2022-11-30 13:05:57 -08:00
Sam Lantinga
b8d85c6939
Update for SDL3 coding style ( #6717 )
...
I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base.
In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted.
The script I ran for the src directory is added as build-scripts/clang-format-src.sh
This fixes:
#6592
#6593
#6594
(cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
2022-11-30 12:57:41 -08:00
Sam Lantinga
5c4bc807f7
Revert "SDL_test_md5.h: fix MD5UINT4 type to be really 32 bits."
...
This reverts commit 8eeca8c7db
as it's potentially an ABI break.
2022-11-30 05:59:56 -08:00
Ozkan Sezer
8eeca8c7db
SDL_test_md5.h: fix MD5UINT4 type to be really 32 bits.
...
(cherry picked from commit 8901297437ed9ced67e6029a1d525e8052275b7c)
2022-11-30 05:59:03 -08:00
David Edmundson
d7664a6ef1
Support wayland fractional scale protocol
...
The new protocol adds support for more native communication of
fractional scaling.
Everything in the wayland backend already existed only our fractional
scale was calculated implicitly through a combination of output size
guesswork for fullscreen windows.
This new protocol makes that explicit, providing a more robust solution
and a solution for non-fullscreen surfaces. The fallback code is still
left in place for now whilst compositors gain support.
2022-11-29 16:37:02 -05:00
Anonymous Maarten
5df106603d
cmake: move platform detection to cmake/sdl/paltform.cmake for re-use by SDL2-compat
2022-11-29 20:20:33 +01:00
Ryan C. Gordon
69f0223474
dynapi: Abstract out the environment variable name.
...
(cherry picked from commit cc487ffb801f862aec7e2b415e74c563c4d528d5)
2022-11-29 14:15:20 -05:00
pionere
724845110c
video: fix error messages
...
- do not overwrite error message set by SDL_InitFormat (SDL_AllocFormat)
- set proper error message (Cocoa_Metal_CreateView)
- protect against allocation failure (UIKit_Metal_CreateView)
(cherry picked from commit cf0cb44df88a4293805fdc926880155d58a46bea)
2022-11-29 11:04:11 -08:00