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
Sam Lantinga
38de07d9e4
Cancel current CI actions when a PR is updated
2022-12-04 10:05:54 -08:00
Sam Lantinga
39e39f335e
Only cancel previous builds when iterating on pull requests
2022-12-04 09:50:51 -08:00
Ozkan Sezer
d6327a00fb
re-applied the SDL_NewAudioStream deconstification, including to its definition
...
we should keep this to SDL3 only.
2022-12-04 20:50:20 +03:00
Sam Lantinga
d3ba6529e6
Fixed windows build
2022-12-04 09:39:55 -08:00
Cameron Cawley
ee0e9e979c
Move intrinsic includes into a private header
2022-12-04 09:34:10 -08:00
Sam Lantinga
b4da4ed95a
Removed SDL_SensorGetDataWithTimestamp() and SDL_GameControllerGetSensorDataWithTimestamp()
...
If you care about timestamps you'll also want to catch all of the sensor events instead of just polling the current state. For example, Nintendo Switch controllers generate 3 sensor events with distinct values for each polling interval.
2022-12-04 09:29:28 -08:00
Sam Lantinga
b8760a3ffe
The `timestamp_us` member of the sensor events has been renamed `sensor_timestamp` and now represents nanoseconds.
2022-12-04 09:29:28 -08:00
Sam Lantinga
73f4aeee6a
Pass the event timestamp for joystick events
...
This allows the application to get more fine grained information about controller event timing, and group events that happened together.
2022-12-04 09:29:28 -08:00
Sam Lantinga
f32cdfa096
Fixed presentation reset calculation (thanks @zturtleman!)
2022-12-04 09:28:03 -08:00
Sam Lantinga
f9ad84fd5d
Cancel current CI actions when a PR is updated
...
This should help get build feedback more quickly when someone is iterating on a PR
2022-12-04 09:11:38 -08:00
Ozkan Sezer
25e62193f4
just revert the const removal from SDL_NewAudioStream in commit d0bbfdb
2022-12-04 12:56:50 +03:00
Ozkan Sezer
202eaeea11
replace windows timeapi.h with mmsystem.h for better compatibility.
2022-12-04 12:50:04 +03:00
Ozkan Sezer
36a43eac00
apply const removal changes from SDL_NewAudioStream to dynapi side too.
2022-12-04 12:47:20 +03:00