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
Sam Lantinga
6161c437c7
Added SDL_SetLogPriorityPrefix()
...
SDL_Log() no longer prints a log prefix by default for SDL_LOG_PRIORITY_INFO and below. The log prefixes can be customized with SDL_SetLogPriorityPrefix().
2024-08-05 09:02:50 -07:00
Ryan C. Gordon
074dd8c35f
hints: Change hints to be backed by Properties, add documentation. ( #9892 )
...
This makes the subsystem thread-safe, more performant, and cleans up the code a little.
Also removed SDL_HINT_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS, since setting this hint programmatically initializes properties, which creates a lock, so we can't check hints while creating locks. The slim reader-writer locks have been the default for ages and are solid, so we'll just use those when available.
2024-08-05 09:02:28 -07:00
SDL Wiki Bot
e3682995f5
Sync SDL3 wiki -> header
2024-08-05 15:54:41 +00:00
Sam Lantinga
746b8eb14b
Added SDL_HINT_MUTE_CONSOLE_KEYBOARD
2024-08-05 08:54:10 -07:00
Sam Lantinga
afde1cc9c2
Added SDL_HINT_EVDEV_DEVICES
2024-08-05 08:54:10 -07:00
Sam Lantinga
0da346f129
Added SDL_HINT_HIDAPI_LIBUSB, SDL_HINT_HIDAPI_LIBUSB_WHITELIST, and SDL_HINT_HIDAPI_UDEV
2024-08-05 08:54:10 -07:00
Sam Lantinga
d9f9e9e764
Added SDL_HINT_VIDEO_DUMMY_SAVE_FRAMES and SDL_HINT_VIDEO_OFFSCREEN_SAVE_FRAMES
2024-08-05 08:54:10 -07:00
Sam Lantinga
a97dadf779
Added hints to replace environment variables on the PlayStation Vita
2024-08-05 08:54:10 -07:00
Sam Lantinga
3669d1e76a
Added SDL_HINT_VULKAN_DISPLAY
2024-08-05 08:54:10 -07:00
Sam Lantinga
997df06320
Added SDL_HINT_X11_XCB_LIBRARY
2024-08-05 08:54:10 -07:00
Sam Lantinga
175f28f59f
Added SDL_HINT_VIDEO_X11_NODIRECTCOLOR
2024-08-05 08:54:10 -07:00
Sam Lantinga
8cde570ad9
Added SDL_HINT_VIDEO_X11_VISUALID
2024-08-05 08:54:10 -07:00
Sam Lantinga
05f870f20d
Added SDL_HINT_OPENGL_LIBRARY and SDL_HINT_VULKAN_LIBRARY
2024-08-05 08:54:10 -07:00
Sam Lantinga
c9b2bfa7c1
Added SDL_HINT_AUDIO_DISK_INPUT_FILE, SDL_HINT_AUDIO_DISK_OUTPUT_FILE, and SDL_HINT_AUDIO_DISK_TIMESCALE
2024-08-05 08:54:10 -07:00
Sam Lantinga
e1ee0e748d
Added SDL_HINT_WAVE_CHUNK_LIMIT
2024-08-05 08:54:10 -07:00
Sam Lantinga
f05cd85048
Added SDL_HINT_AUDIO_ALSA_DEFAULT_DEVICE
2024-08-05 08:54:10 -07:00
Sam Lantinga
71574ac985
Added SDL_HINT_AUDIO_DUMMY_TIMESCALE
2024-08-05 08:54:10 -07:00
Sam Lantinga
5aa1a48ac3
Added SDL_HINT_AUDIO_FREQUENCY, SDL_HINT_AUDIO_CHANNELS, and SDL_HINT_AUDIO_FORMAT
2024-08-05 08:54:10 -07:00
Sam Lantinga
0a6bab3ac7
Added SDL_CreateRenderer to the "see also" for SDL_RenderPresent()
2024-08-05 07:56:29 -07:00
SDL Wiki Bot
6212497ea3
Sync SDL3 wiki -> header
2024-08-05 03:00:45 +00:00
Sam Lantinga
b1af91e788
Clarified timer documentation
...
Fixes https://github.com/libsdl-org/SDL/issues/10079
2024-08-04 19:44:13 -07:00
SDL Wiki Bot
a699ff2419
Sync SDL3 wiki -> header
2024-08-04 17:49:28 +00:00
Sam Lantinga
bc1c3f826f
Added SDL_HINT_LOGGING documentation to the logging category page.
...
Fixes https://github.com/libsdl-org/SDL/issues/10335
2024-08-04 10:48:42 -07:00