Simon McVittie
45ebdfb1dc
emscripten: Replace a stray reference to SDL2 with SDL3
...
Entirely untested, but I'm fairly sure this is what was intended.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-12-13 09:03:11 -05:00
Simon McVittie
4a46a9e372
.gitignore: Replace all SDL2 with SDL3
...
Some of these are probably unnecessary now that Autotools (with its
optional in-tree builds) has been deleted in favour of CMake (with
mandatory out-of-tree builds), but let's be consistent.
Spotted while doing a `git grep` for other bugs of the same form as #6801 .
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-12-13 09:02:28 -05:00
Sam Lantinga
650e16a824
Detect display change when fullscreen desktop windows move displays
...
This happens when using Win+Alt+Left/Right on a resizable fullscreen desktop window on Windows
2022-12-12 20:26:17 -08:00
Sam Lantinga
a506d798d8
Don't try to open the Razer Huntsman Elite keyboard as a controller
...
(cherry picked from commit 817454cfe6db826f6cf6688952e28ee07b27a89a)
2022-12-12 18:01:32 -08:00
Ryan C. Gordon
12486e144b
wasapi: Fixed incorrect assertions.
...
Fixes #6795 .
2022-12-12 16:07:48 -05:00
Frank Praznik
90a964f132
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.
2022-12-12 11:21:20 -08:00
Sam Lantinga
618340bf99
Added support for the STRIKEPAD PS4 Grip Add-on to the HIDAPI driver
2022-12-12 10:55:38 -08:00
Anonymous Maarten
9eb4d1f020
cmake: use FindALSA.cmake to find ALSA libraries
...
Co-authored-by: nfarid <54642193+nfarid@users.noreply.github.com>
2022-12-12 01:37:01 +01:00
Pierre Wendling
053ce39d67
N3DS: Semaphore fixes. ( #6776 )
...
* N3DS: Make Sem waits cooperative friendly.
The 3DS has a cooperative threading model. Sleeping after TryWait and
WaitTimeout avoid starving other threads. It inccurs a runtime penalty,
but it's better than having to hard reset your console to recover from
a deadlock.
2022-12-11 11:27:16 -08:00
Kelly Gravelyn
bb6abd7b03
Remove OutDir and IntDir from GDK projects
2022-12-10 09:50:47 -08:00
Sylvain
e5a470d0d3
Update DYNAPI SDL_WinRTRunApp() prototype which was wrong (see #6783 )
2022-12-10 17:54:16 +01:00
Sylvain
3d190ebcb4
SDL_dynapi_procs: fixed SDL_UIKitRunApp prototype (see #6783 )
2022-12-10 17:45:56 +01:00
Sylvain
a38ea6bad2
SDL_assert: remove old define for obsolete naming
2022-12-10 17:21:51 +01:00
Sylvain
f906c52ee6
SDL_assert: remove old naming convention (see #6783 )
2022-12-10 17:19:00 +01:00
Sylvain
2905b6d65a
SDL_dynapi_procs: update wrong naming conventions with SDL_AssertState/Data (see #6783 )
2022-12-10 17:15:14 +01:00
Ryan C. Gordon
16f8dfcef9
docs: Note that you don't need to free SDL_GetDefaultCursor's results.
...
Reference Issue #6777 .
2022-12-09 22:08:40 -05:00
Sylvain
99baebf5eb
SDL_dynapi_procs.h: one more space (for diff purpose)
2022-12-09 20:42:01 +01:00
Sylvain
b7008e4614
SDL_dynapi_procs: remove extra ' '
2022-12-09 20:36:34 +01:00
Sylvain
cce1341b5b
gendynapi.py: don't generate parameter for '...' - corrected
2022-12-09 20:34:13 +01:00
Sylvain
f442d0a0ef
Revert "gendynapi.py: don't generate parameter for '...'"
...
This reverts commit ea8c7df91b
.
2022-12-09 20:33:14 +01:00
Sylvain
ea8c7df91b
gendynapi.py: don't generate parameter for '...'
2022-12-09 20:22:44 +01:00
Sylvain
5f89987d7f
Fixed extra 'space' (see #6783 Thanks @sezero !)
2022-12-09 20:09:17 +01:00
Sam Lantinga
3736005fc4
Added test event logging for SDL_WINDOWEVENT_ICCPROF_CHANGED and SDL_WINDOWEVENT_DISPLAY_CHANGED
2022-12-09 10:23:00 -08:00
Sylvain
b116dd8eb8
gendynapi.py: add comment for OS-specific API (Thanks @DanielGibson!)
2022-12-09 09:27:19 +01:00
Sam Lantinga
cfa493c97f
Use the current timestamp for keyboard hook events
...
Fixes https://github.com/libsdl-org/SDL/issues/6771
2022-12-08 23:13:13 -08:00
Sam Lantinga
5bc80abe0d
Added logging for SDL_DISPLAYEVENT_MOVED
...
(cherry picked from commit be3b1cff0bc2e3e28ae53beb3cc97ab42e8447ab)
2022-12-08 17:04:27 -08:00
Sam Lantinga
7d1bf0a9fe
Make sure the display list is up to date for window placement
...
(cherry picked from commit ab479b49611e8f34573509cfece7e159faa922d6)
2022-12-08 17:04:11 -08:00
Sam Lantinga
a4a80360f5
Added SDL_DISPLAYEVENT_MOVED to detect when display positioning changes
...
(cherry picked from commit 264da8c127f8bf8930fa62f106763855efbf2a93)
2022-12-08 12:47:56 -08:00
Sam Lantinga
98fa97de91
Fixed memory leak when removing existing displays
...
(cherry picked from commit cfc7cac3c9f33fada3d3da1ba974f33ddb4ddfc5)
2022-12-08 12:46:50 -08:00
Frank Praznik
653e484da1
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.
2022-12-08 09:29:37 -08:00
Sylvain
e93769d2c9
Extract the name of a callback paramter
2022-12-08 08:55:27 -08:00
Sylvain
67a4094eea
Rewrite + gendynapi into python
2022-12-08 08:55:27 -08:00
Sylvain
c265fb74b0
Renamed AUDIODRIVER and VIDEODRIVER hint/env to AUDIO_DRIVER and VIDEO_DRIVER
2022-12-08 09:50:09 -05:00
Ryan C. Gordon
7ca0d15d64
events: Changed SDL_GetEventState from a macro to a function.
...
Fixes #6773 .
2022-12-08 00:08:51 -05:00
Sam Lantinga
9a6bcca6b8
Use the correct name for the DualSense controllers
2022-12-07 14:53:33 -08:00
Sam Lantinga
9339085593
Added support for the DualSense Edge paddles
2022-12-07 14:25:53 -08:00
Sam Lantinga
ea714956b6
Clarified where the paddle locations are
2022-12-07 14:17:58 -08:00
Sam Lantinga
a71ac0eb06
Revert "Add window title to app_ids for different"
...
This reverts commit 39eab4bf44
.
From @Kontrabant:
Making windows use the window title as the app ID by default doesn't seem like the right direction. The app ID is used by window managers to group windows from the same application together for switching between with alt-tilde and such functionality, and giving each window it's own app ID would break this.
2022-12-07 07:39:40 -08:00
Frank Praznik
30bb8f616d
wayland: Pass through event timestamps of 0
...
Always pass through event timestamps of 0 so the current time will be used for the event.
2022-12-06 09:17:00 -08:00
Lei.Huang
39eab4bf44
Add window title to app_ids for different
...
"app_ids" can be used for multiple windows
Signed-off-by: Lei.Huang <leihuang@amd.com>
2022-12-05 21:30:03 -05:00
Sam Lantinga
e8b1dfef9b
Fixed centering the D-pad on some joysticks
...
Fixes https://github.com/libsdl-org/SDL/issues/6767
2022-12-05 13:33:04 -08:00
Sam Lantinga
fcafe40948
Removed balls from the joystick API
...
They were only used by one joystick decades ago, so removing them for SDL3
Fixes https://github.com/libsdl-org/SDL/issues/6766
2022-12-05 13:17:18 -08:00
Sam Lantinga
75f1eb9216
Don't assume evdev events and SDL_GetTicks() use the same time source
...
The evdev events are in the same time base as gettimeofday(), but SDL_GetTicks() might be using clock_gettime()
2022-12-05 10:40:16 -08:00
Sam Lantinga
57d34f2e10
Make sure we never get a zero tick_start value
2022-12-05 10:17:38 -08:00
Sam Lantinga
c468d93760
Removed unnecessary conversion from nanoseconds to milliseconds in SDL_GetTicks()
2022-12-05 10:11:22 -08:00
Sam Lantinga
82b01035d1
Reduce the chance of overflow when calculating nanosecond time
...
Fixes https://github.com/libsdl-org/SDL/issues/6762
2022-12-05 09:43:30 -08:00
Ozkan Sezer
ed6d401616
gendynapi.pl: fix "Use of uninitialized value $7" after commit 0f9482e
.
...
Reference issue: https://github.com/libsdl-org/SDL/issues/6740 .
2022-12-05 20:29:56 +03:00
Sylvain
af5bda5ef3
Fix warnings 'macro argument should be enclosed in parentheses'
2022-12-05 09:06:44 -08:00
Frank Praznik
8cafde5ecc
wayland: Add high-resolution event timestamp support
...
Add the protocol for high-resolution timestamp events and subscribe to them if available.
Event timestamps are now handled natively in nanoseconds as much as possible to avoid error-prone conversions.
Variables have been appended with _ms or _ns where appropriate, to avoid ambiguity.
2022-12-04 16:56:26 -08:00
Ozkan Sezer
4a22ee7277
tests: avoid redefinition warnings for MSVC _CRT_???_NO_DEPRECATE macros
2022-12-05 00:35:20 +03:00