Sam Lantinga
23db1062fc
Document that you can pass NULL to SDL_PeepEvents()
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/547
2024-06-06 10:08:20 -07:00
Sam Lantinga
9b2debb131
Renamed old function reference
2024-06-04 22:25:37 -07:00
SDL Wiki Bot
e5101ebae6
Sync SDL3 wiki -> header
2024-06-04 04:11:34 +00:00
Sam Lantinga
a0d1445ccb
Replaced SDL_GetRendererInfo() with SDL_GetRendererName()
...
The texture formats are available via the SDL_PROP_RENDERER_TEXTURE_FORMATS_POINTER property
Fixes https://github.com/libsdl-org/SDL/issues/9851
2024-06-03 21:10:58 -07:00
SDL Wiki Bot
74c9c9a325
Sync SDL3 wiki -> header
2024-06-04 01:23:30 +00:00
Semphris
8c8ee2174d
Dialog: Add filter number, remove NULL termination
2024-06-03 18:22:26 -07:00
Sam Lantinga
a9a51cebde
Disable raw keyboard input by default
...
It interferes with keyboard hooks and most applications don't expect key events coming from another thread
2024-06-03 14:43:46 -07:00
SDL Wiki Bot
39c2dacc8f
Sync SDL3 wiki -> header
2024-06-03 18:21:49 +00:00
Ryan C. Gordon
e23257307e
Introduce formal policy for APIs that return strings.
...
This declares that any `const char *` returned from SDL is owned by SDL, and
promises to be valid _at least_ until the next time the event queue runs, or
SDL_Quit() is called, even if the thing that owns the string gets destroyed
or changed before then.
This is noted in the headers as "the SDL_GetStringRule", so this will both be
greppable to find a detailed explaination in docs/README-strings.md and
wikiheaders will automatically turn it into a link we can point at the
appropriate documentation.
Fixes #9902 .
(and several FIXMEs, both known and yet-undocumented.)
2024-06-03 14:20:49 -04:00
Carlo Bramini
b1f3682216
SDL_assert: add support for aarch64-w64-mingw32
...
GCC 15 development branch provides an experimental support for Windows on ARM64, which will be officially released next year, according to latest news.
I tried to compile SDL2 with this new compiler but I got a tiny problem into SDL_assert.h because it couldn't find the right platform.
However, it has been easy to fix and I included it into this PR.
More details can be also found here:
https://learn.microsoft.com/en-us/cpp/intrinsics/debugbreak?view=msvc-170
(cherry picked from commit 2cb1a2d0a7
)
2024-06-03 10:55:14 -07:00
Ryan C. Gordon
9a9a3d1a33
SDL_SystemCursor: rename enum items to match CSS.
...
Fixes #9079 .
2024-06-01 22:32:43 -04:00
Ozkan Sezer
49b6c24722
always define PRI?64 using 'I64' when targeting windows
...
avoids -Wformat warnings from mingw toolchains -- e.g.:
src/test/SDL_test_harness.c:581:37: warning: unknown conversion type character 'l' in format [-Wformat=]
2024-06-01 22:35:40 +03:00
SDL Wiki Bot
04a0a85d92
Sync SDL3 wiki -> header
2024-05-29 02:48:51 +00:00
Sam Lantinga
542a3663de
Added SDL_GetDefaultKeyFromScancode() to the public API
...
This is useful when getting the English name of a key for a non-Latin keyboard layout, for example.
2024-05-28 19:48:24 -07:00
SDL Wiki Bot
98fdef75bb
Sync SDL3 wiki -> header
2024-05-28 18:54:02 +00:00
Sam Lantinga
c74886ab00
Added SDL_SetWindowAspectRatio() and SDL_GetWindowAspectRatio()
...
Fixes https://github.com/libsdl-org/SDL/issues/1573
2024-05-28 11:52:31 -07:00
Sam Lantinga
36015ad5e5
Fixed compiling SDL_platform_defines.h on macOS with older compilers (thanks @sezero!)
...
Fixes #9632
2024-05-27 14:34:21 -07:00
Ryan C. Gordon
e508d82f74
include: Tweaked some vsync-related documentation.
...
Reference PR #9903 .
2024-05-27 16:57:32 -04:00
SDL Wiki Bot
6524f9c9b8
Sync SDL3 wiki -> header
2024-05-27 20:12:47 +00:00
Sam Lantinga
dfe4445214
Added SDL_SetWindowSurfaceVSync() and SDL_GetWindowSurfaceVSync()
...
Fixes https://github.com/libsdl-org/SDL/issues/9347
2024-05-27 13:12:17 -07:00
SDL Wiki Bot
7c75801571
Sync SDL3 wiki -> header
2024-05-27 20:04:46 +00:00
Ryan C. Gordon
3364aff757
main: Make the main callback return value symbols smaller (thanks, @Lzard!).
...
Reference #9901 .
2024-05-27 16:03:45 -04:00
SDL Wiki Bot
a086144dad
Sync SDL3 wiki -> header
2024-05-27 16:59:55 +00:00
Ryan C. Gordon
0fe9900429
main: Main callback docs recommend returning the symbols instead of -1, 0, 1.
...
Reference #9901 .
2024-05-27 12:58:22 -04:00
Sam Lantinga
7d81e9d46c
Note that you can redraw in response to SDL_EVENT_WINDOW_EXPOSED from an event watch callback
2024-05-27 08:06:13 -07:00
SDL Wiki Bot
54fcacae31
Sync SDL3 wiki -> header
2024-05-27 14:58:03 +00:00
Sam Lantinga
14667cc0a3
Document that the timer callback can potentially be called before the timer returns.
2024-05-27 07:57:33 -07:00
Sam Lantinga
99599d9236
Added SDL_AddTimerNS()
2024-05-27 07:57:33 -07:00
Sam Lantinga
b6360516e4
Added the timerID to the SDL timer callback
...
Fixes https://github.com/libsdl-org/SDL/issues/2593
2024-05-27 07:57:33 -07:00
Sam Lantinga
df25e4022d
Removed short aliases for 16-bit pixel formats
...
These were potentially misleading in the same way the RGB888/BGR888 aliases were
Fixes https://github.com/libsdl-org/SDL/issues/4994
2024-05-27 07:24:46 -07:00
SDL Wiki Bot
5fa9432b7d
Sync SDL3 wiki -> header
2024-05-27 02:54:30 +00:00
Ryan C. Gordon
066f49da1a
main: Add some macros for main callback return codes.
...
Fixes #9883 .
2024-05-26 22:53:06 -04:00
SDL Wiki Bot
c168ccc3c3
Sync SDL3 wiki -> header
2024-05-27 02:00:01 +00:00
Sam Lantinga
606903c02f
Updated window event names
2024-05-26 11:13:34 -07:00
Ryan C. Gordon
a4ccace9c5
include: Fix warnings from gendynapi.py.
...
Fixes #9890 .
2024-05-26 13:44:16 -04:00
Ryan C. Gordon
a0376ab057
SDL_MouseButtonFlags: Clarified some documentation.
2024-05-26 13:23:21 -04:00
Ryan C. Gordon
10bbf9d1da
Fixed SDL_PenCapabilityFlags from Uint64 to Uint32.
2024-05-26 13:23:21 -04:00
Ryan C. Gordon
0e6db371e8
pen: Make the \since
field in SDL_PenCapabilityFlags match everything else.
2024-05-26 13:23:21 -04:00
Ryan C. Gordon
cf2874080f
mouse: Move mouse button state from a Uint32 to a formal typedef.
...
Reference Issue #9812 .
2024-05-26 13:23:21 -04:00
Ryan C. Gordon
13b18e3c41
test: Moved some Uint32
bitfields over to typedefs.
...
Reference Issue #9812 .
2024-05-26 13:23:21 -04:00
Ryan C. Gordon
0f0570b060
pen: Change a Uint32 bitfield into a typedef.
...
Reference Issue #9812 .
2024-05-26 13:23:21 -04:00
SDL Wiki Bot
8e3ff8c3a1
Sync SDL3 wiki -> header
2024-05-26 17:21:54 +00:00
Sam Lantinga
534768c7c5
Added SDL_PauseAudioStreamDevice() and SDL_ResumeAudioStreamDevice()
2024-05-26 13:21:23 -04:00
SDL Wiki Bot
a6da2e6f8b
Sync SDL3 wiki -> header
2024-05-26 16:19:32 +00:00
Ryan C. Gordon
2626304e70
properties: add formal SDL_CleanupPropertyCallback type, improve docs.
2024-05-26 12:17:34 -04:00
SDL Wiki Bot
84cb065da2
Sync SDL3 wiki -> header
2024-05-26 03:34:35 +00:00
Ryan C. Gordon
033793faed
audio: SDL_OpenAudioDeviceStream() now allows a NULL spec.
2024-05-25 23:34:01 -04:00
Ryan C. Gordon
6a40a8eb12
audio: Minor documentation clarifications.
2024-05-25 23:34:00 -04:00
Sam Lantinga
7a043d9958
Note that SDL_BlitSurface() was renamed SDL_BlitSurfaceScaled()
2024-05-24 05:33:51 -07:00
Sam Lantinga
89caa88b73
Get the definition for SDL_PropertiesID in SDL_thread.h
2024-05-23 17:14:07 -07:00