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
Frank Praznik
e612ce511b
wayland: Add support for high-DPI custom cursors
...
Add a cursor caching system and viewport support, to allow for high-DPI, fractionally-scaled, custom cursors.
2024-08-06 10:55:13 -04:00
Dragon-Baroque
ca127106ee
Add MIME targets to SDL_EVENT_DROP_TEXT in X11
...
src/video/x11/SDL_x11events.c
Add Text targets "text/plain;charset=utf-8",
"UTF8_STRING", "TEXT" to "text/plain".
2024-08-06 05:49:38 -07:00
Sam Lantinga
44927fe5e3
Added detail about why a file couldn't be opened (thanks mgerhardy!)
...
Fixes https://github.com/libsdl-org/SDL/issues/10484
(cherry picked from commit 1512013320
)
2024-08-06 05:48:26 -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
725b95dc84
Fixed SDL_GetDefaultScancodeFromKey()
2024-08-05 19:46:45 -07:00
Sam Lantinga
afec46dbee
Re-added SDL_GetScancodeFromKey()
2024-08-05 19:46:45 -07:00
Sam Lantinga
4f7c0e7c46
Fixed key names for non-latin keyboard layouts
2024-08-05 19:46:45 -07:00
Sam Lantinga
ac7df9d01f
Removed acquire/release of keymaps, which isn't needed internally.
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
d68d32e12c
Revert "Removing a timer that isn't running is a success."
...
This reverts commit 795499a529
.
This breaks compatibility with SDL2 and there isn't a compelling reason to make this change.
2024-08-05 10:39:33 -07:00
Sam Lantinga
d223264f17
Updated the documentation for SDL_HINT_KEYCODE_OPTIONS
2024-08-05 10:17:48 -07:00
Sam Lantinga
4073c4910e
Enable KEYCODE_OPTION_LATIN_LETTERS by default
...
It turns out that the non-Latin keyboards (Russian, Thai, Greek, etc.) are almost all QWERTY layout plus native language labels. Feedback from users is that they expect to see the ASCII keycodes and key names when using those keyboards, so we'll enable this option by default.
2024-08-05 10:00:02 -07:00
Sam Lantinga
d7256a77db
The KEYCODE_OPTION_LATIN_LETTERS uses the full QWERTY layout
...
This makes sure we use ']' instead of 'ъ' for the ']' key on the Russian keyboard layout, for example.
2024-08-05 10:00:02 -07:00
Sam Lantinga
eac8e858d5
Fixed key names for Thai keyboards
...
Using the shifted versions of keys for the key names doesn't make any sense on the Thai keyboard. Thai keyboards are QWERTY plus Thai characters, so let's use the ASCII key names.
2024-08-05 10:00:02 -07:00
Sam Lantinga
b7aca89466
Fixed key names when KEYCODE_OPTION_LATIN_LETTERS is enabled
2024-08-05 10:00:02 -07:00
Sam Lantinga
a82f19f690
Use the shifted version of the letter as the key name
...
SDL_Keycode is defined as the unshifted key on the keyboard, but the key name is defined as the letter printed on that key, which is usually the shifted capital letter.
Fixes https://github.com/libsdl-org/SDL/issues/5836
2024-08-05 10:00:02 -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
dfd96ff50f
Updated SDL_HINT_VIDEODRIVER documentation
2024-08-05 08:54:10 -07: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
6f399c3beb
Note that SDL_HAPTIC_GAIN_MAX should remain an environment variable.
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
8a5b9559dc
Removed the SDL_VIDEO_NGAGE_SAVE_FRAMES environment variable
...
Display updating is now implemented, presumably we don't need to be able to dump frames for debugging.
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
f370e1a645
Removed the SDL_ALTIVEC_BLIT_FEATURES environment variable.
...
This code has long since been tested, and none of the developers have an Altivec CPU.
2024-08-05 08:54:10 -07:00
Sam Lantinga
95adcc522f
Allow SDL hints to override OpenGL extension availability
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
897610d317
Updated migration documentation for the AUDIODEV environment variable
2024-08-05 08:54:10 -07:00
Sam Lantinga
a4dc130d7e
Removed the SDL_PATH_DSP environment variable from the NetBSD and OSS audio driver
...
The AUDIODEV environment variable is no longer used by other audio drivers, and can be used exclusively to specify the DSP audio device.
2024-08-05 08:54:10 -07:00
Sam Lantinga
f3fcc41a4e
Removed the AUDIODEV environment variable from the sndio audio driver
...
The sndio documentation says that the AUDIODEVICE environment variable is used when the device is opened with SIO_DEVANY.
2024-08-05 08:54:10 -07:00
Sam Lantinga
ff0e42c51c
Removed the SDL_AUDIO_ALSA_DEBUG environment variable
...
The debug info is available if you set SDL_HINT_LOGGING to "audio=debug"
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
hwsmm
4f343f96b4
Fix name discrepancy in Android JNI
2024-08-05 05:46:39 -07:00