Sam Lantinga
fa2c9c46c5
Default SDL_HINT_JOYSTICK_GAMEINPUT to SDL_FALSE
...
This was causing crashes in IGameInput_RegisterSystemButtonCallback(), presumably on older systems with runtimes using a different function signature. We'll just disable it for now until the GameInput runtime has stabilized and we can tell when it's safe to use.
2024-08-23 11:34:15 -07:00
Sam Lantinga
8f546bb3c9
Use C99 bool internally in SDL
2024-08-22 13:30:02 -07:00
Sam Lantinga
9c7c0646c9
Fixed typo
2024-08-22 09:04:30 -07:00
Sam Lantinga
03ace96e5b
Document that new surfaces are initialized to zero.
...
Fixes https://github.com/libsdl-org/SDL/issues/10577
2024-08-22 06:27:56 -07:00
Sam Lantinga
d29276e625
Include SDL_events.h in SDL_init.h for SDL_AppEvent_func()
2024-08-20 07:53:07 -07:00
Ryan C. Gordon
eb212ac4ed
main: Emscripten needs SDL_main_impl.h now that it has its own SDL_RunApp.
...
Reference PR #10171 .
2024-08-18 23:54:55 -04:00
SDL Wiki Bot
1f34f35b25
Sync SDL3 wiki -> header
2024-08-19 00:55:27 +00:00
Ryan C. Gordon
9c5bd98a0f
assert: Added SDL_HINT_ASSERT.
...
Same environment variable, but now accessible as a formal SDL hint.
Reference PR #10171 .
2024-08-18 20:53:55 -04:00
Ryan C. Gordon
42e43697cf
include: Minor SDL_AppResult documentation tweak.
2024-08-17 00:42:33 -04:00
SDL Wiki Bot
4147ff6a4e
Sync SDL3 wiki -> header
2024-08-17 04:39:06 +00:00
Ryan C. Gordon
4c30e555fe
include: Clean up SDL_AppResult documentation.
2024-08-17 00:37:56 -04:00
Sam Lantinga
156aab2147
Added documentation for SDL_DisplayID and SDL_WindowID for consistency.
2024-08-16 15:46:43 -07:00
SDL Wiki Bot
4fbdbbbde6
Sync SDL3 wiki -> header
2024-08-16 22:22:07 +00:00
Sam Lantinga
cb85894e94
Clarified device ID documentation
...
Fixes https://github.com/libsdl-org/SDL/issues/10558
2024-08-16 15:20:34 -07:00
SDL Wiki Bot
ab53ff77bb
Sync SDL3 wiki -> header
2024-08-16 18:17:21 +00:00
Sam Lantinga
438a214420
Changed main callback return values to an enumeration
...
Fixes https://github.com/libsdl-org/SDL/issues/10515
2024-08-16 11:16:05 -07:00
Sam Lantinga
83adcb9d38
Added SDL_PROP_WINDOW_CREATE_FLAGS_NUMBER
...
This is undocumented since the individual flags are separate window creation properties, but it's useful to have a shared definition for this, which is used internally and for migrating code from SDL2.
2024-08-15 13:33:06 -07:00
Sam Lantinga
d7b027a241
Namespace the object creation properties
...
Fixes https://github.com/libsdl-org/SDL/issues/10543
2024-08-15 12:56:04 -07:00
SDL Wiki Bot
0822d94631
Sync SDL3 wiki -> header
2024-08-15 14:29:23 +00:00
Kaktus514
3586df3151
Prefer downscaling in SDL_GetSurfaceImage.
...
This implements the ideas described in #10536
2024-08-15 07:28:31 -07:00
Sam Lantinga
1a729251ad
Added references to SDL_GetPixelFormatDetails() from the SDL_*RGB functions
2024-08-12 09:22:59 -07:00
Ryan C. Gordon
871d0074d2
SDL_GLattr: Added some documentation from SDL2.
2024-08-12 01:33:05 -04:00
Ryan C. Gordon
bec701dd04
pen: Add support for tangential pressure axis.
2024-08-11 18:00:13 -04:00
SDL Wiki Bot
a7fa375275
Sync SDL3 wiki -> header
2024-08-10 02:09:54 +00:00
Ryan C. Gordon
a9d70dbacb
pen: Rework public API.
...
This changes the API in various ways, and updates the backends for this.
Overall, this is a massive simplification of the API, as most future backends
can't support the previously-offered API.
This also removes the testautomation pen code (not only did these interfaces
change completely, it also did something no other test did: mock the internal
API), and replaces testpen.c with a different implementation (the existing
code was fine, it was just easier to start from scratch than update it).
2024-08-09 22:09:23 -04:00
SDL Wiki Bot
78b1e0e299
Sync SDL3 wiki -> header
2024-08-09 16:57:18 +00:00
Sam Lantinga
c2085dad8f
Added SDL_HINT_JOYSTICK_GAMEINPUT
2024-08-09 09:56:47 -07:00
Sam Lantinga
4cc3410dce
Added SDL_GetAudioFormatName()
...
Fixes https://github.com/libsdl-org/SDL/issues/10489
2024-08-08 15:05:37 -07:00
SDL Wiki Bot
d2bdfd7792
Sync SDL3 wiki -> header
2024-08-08 17:56:53 +00:00
Frank Praznik
ae8065e1ec
Use more stringent criteria for entering warp emulation mode
...
Require more than one warp to the window center within a certain timespan (currently 30ms, but can be tweaked) to better avoid erroneously entering warp emulation mode.
This also correctly resets the warp emulation mode activation if the window loses and regains focus.
2024-08-08 10:56:20 -07:00
Sam Lantinga
058781f514
Include GameInput.h as gameinput.h for compatibility with non-MSVC toolchains
2024-08-08 09:14:38 -07:00
Anonymous Maarten
8714de9f46
SDL_GetAudioStreamAvailable and SDL_GetAudioStreamAvailable return error codes
2024-08-08 10:11:39 +00:00
Sam Lantinga
a38cd7a067
Added checks for GameInput.h to the build system
2024-08-07 17:57:33 -07:00
SDL Wiki Bot
212f7cc355
Sync SDL3 wiki -> header
2024-08-07 19:19:43 +00:00
Sam Lantinga
001dbc5da8
Added support for raw mouse and keyboard using GameInput on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/10442
2024-08-07 12:19:09 -07:00
Sylvain
20a6193eaa
Run test suites and test cases in non-linear order (see libsdl-org#9303)
2024-08-07 10:25:30 +02:00
SDL Wiki Bot
8a3bb11024
Sync SDL3 wiki -> header
2024-08-06 17:17:11 +00:00
SDL Wiki Bot
1ecf05be93
Sync SDL3 wiki -> header
2024-08-06 17:12:54 +00:00
Anonymous Maarten
0fa2049fef
Document iconv functions + add testautomation ( #10131 )
...
* stdinc: document SDL_iconv* functions
* iconv: add automation tests
* iconv: don't potentially crash on invalid inputs
2024-08-06 10:12:25 -07:00
SDL Wiki Bot
57fa3bc08e
Sync SDL3 wiki -> header
2024-08-06 15:00:23 +00:00
Sam Lantinga
627cb8acd0
SDL_EventFilter functions now return SDL_bool
2024-08-06 07:59:45 -07:00
Sam Lantinga
57f9c6f7bb
Renamed SDL_Get/SetRelativeMouseMode to SDL_Get/SetWindowRelativeMouseMode()
...
Fixes https://github.com/libsdl-org/SDL/issues/10041
2024-08-06 07:59:45 -07:00
Sam Lantinga
a1998d106d
Putting the simple back into Simple DirectMedia Layer
2024-08-05 21:20:26 -07:00
SDL Wiki Bot
0d3db8390d
Sync SDL3 wiki -> header
2024-08-06 02:47:18 +00:00
Sam Lantinga
afec46dbee
Re-added SDL_GetScancodeFromKey()
2024-08-05 19:46:45 -07:00
Sam Lantinga
a13c993e40
Removed keymaps from the API
...
This is unnecessary complication for applications. We can always add it again later if we find that it's really useful.
2024-08-05 19:46:45 -07:00
SDL Wiki Bot
1966472f73
Sync SDL3 wiki -> header
2024-08-06 00:02:59 +00:00
Sam Lantinga
c298a3749b
Expose the keymap separately from the event keycode
...
This adds functions to query the keymap:
* SDL_GetCurrentKeymap()
* SDL_GetKeymapKeycode()
* SDL_GetKeymapScancode()
* SDL_ReleaseKeymap()
and these are distinct from the function to query the event keycode associated with a scancode, which might be affected by SDL_HINT_KEYCODE_OPTIONS.
Also added an SDL_bool parameter to SDL_GetKeyName() and SDL_GetKeyFromName() to enable upper case handling of the name.
2024-08-05 17:02:25 -07:00
Sam Lantinga
d223264f17
Updated the documentation for SDL_HINT_KEYCODE_OPTIONS
2024-08-05 10:17:48 -07:00
SDL Wiki Bot
ad27d73a19
Sync SDL3 wiki -> header
2024-08-05 16:03:59 +00:00