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
81f8e6aba6
Added SDL_StartTextInputWithProperties()
...
This allows you to customize the text input so you can have numeric text entry, hidden passwords, etc.
Fixes https://github.com/libsdl-org/SDL/issues/7101
Fixes https://github.com/libsdl-org/SDL/issues/7965
Fixes https://github.com/libsdl-org/SDL/issues/9439
2024-08-02 14:49:37 -07:00
SDL Wiki Bot
3b01a0b884
Sync SDL3 wiki -> header
2024-07-29 11:26:36 +00:00
Sam Lantinga
61a88077a7
Re-added SDL_HINT_APP_ID and SDL_HINT_APP_NAME
2024-07-29 07:26:03 -04:00
Sam Lantinga
a36fe632fd
Added SDL_SetAppMetadata() ( #10404 )
...
Removed duplicate hints SDL_HINT_APP_NAME, SDL_HINT_APP_ID, and
SDL_HINT_AUDIO_DEVICE_APP_NAME.
Wired up a few things to use the metadata; more to come!
Fixes https://github.com/libsdl-org/SDL/issues/4703
2024-07-28 07:22:46 -07:00
Sam Lantinga
4f55271571
Removed temporary memory from the API
...
It was intended to make the API easier to use, but various automatic garbage collection all had flaws, and making the application periodically clean up temporary memory added cognitive load to using the API, and in many cases was it was difficult to restructure threaded code to handle this.
So, we're largely going back to the original system, where the API returns allocated results and you free them.
In addition, to solve the problems we originally wanted temporary memory for:
* Short strings with a finite count, like device names, get stored in a per-thread string pool.
* Events continue to use temporary memory internally, which is cleaned up on the next event processing cycle.
2024-07-26 20:59:14 -07:00
Sam Lantinga
5e513ecc7f
Don't automatically free temporary memory, let the application call SDL_FreeTemporaryMemory() when it's ready.
...
Also mark up all functions that return temporary memory with SDL_DECLSPEC_TEMP, to help people implementing language bindings.
Fixes https://github.com/libsdl-org/SDL/issues/10378
2024-07-26 10:05:03 -07:00
SDL Wiki Bot
a880410cb2
Sync SDL3 wiki -> header
2024-07-25 23:58:09 +00:00
Frank Praznik
66eb2ea443
mouse: Make pointer warp emulation via relative mode available to all platforms
...
Move the Wayland pointer warp emulation code up to the SDL mouse layer, and activate it when a client attempts to warp a hidden mouse cursor when the hint is set.
testrelative adds the ability to test the warp emulation activation/deactivation with the --warp parameter and 'c' key for toggling cursor visibility.
2024-07-25 19:57:39 -04:00
Sam Lantinga
ca4bd4b63c
Android life cycle behavior more closely matches iOS
...
This change also decouples the pause/resume handling from the video subsystem on Android, so applications that don't use SDL for video can get application life cycle events.
The semantics for the life cycle events are that they need to be handled in an event watch callback, and once they've been delivered, the application will block until it's been resumed. SDL_HINT_ANDROID_BLOCK_ON_PAUSE can be used to control that behavior, and if that's set to "0", then the application will continue to run in the background at low CPU usage until being resumed or stopped.
SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO has been removed, and the audio will be paused when the application is paused.
Fixes https://github.com/libsdl-org/SDL/issues/3193
2024-07-24 05:11:13 -07:00
SDL Wiki Bot
975457cfb6
Sync SDL3 wiki -> header
2024-07-19 19:23:24 +00:00
Sam Lantinga
71a60d4c0e
Updated documentation for functions that return temporary memory
2024-07-19 12:22:03 -07:00
Sam Lantinga
d73c7311d5
Clarify that the SDL_GetStringRule means that SDL will automatically free the memory later.
2024-07-19 12:22:03 -07:00
Frank Praznik
b99ea1ff75
wayland: Add SDL_VIDEO_DOUBLE_BUFFER support
...
Manual cherry-pick of 9e6b8d56e3
thanks @vanfanel
2024-07-17 18:27:46 -04:00
SDL Wiki Bot
bfa4e71284
Sync SDL3 wiki -> header
2024-07-07 18:05:35 +00:00
SDL Wiki Bot
e37d6f71b3
Sync SDL3 wiki -> header
2024-07-07 18:02:15 +00:00
SDL Wiki Bot
b948d1446a
Sync SDL3 wiki -> header
2024-07-03 01:35:19 +00:00
Sam Lantinga
ed9bbb2dca
Restore default behavior for keypad keycodes
...
Added a hint to translate numpad keycodes into their non-numpad versions based on the NumLock state
2024-07-02 18:34:35 -07:00
Sam Lantinga
d9dc4b320a
The keycode in key events is the base, unmodified, keycode for the current keyboard layout
2024-07-01 13:56:49 -07:00
SDL Wiki Bot
2cfcb144e4
Sync SDL3 wiki -> header
2024-06-29 02:42:49 +00:00
Sam Lantinga
212a491f7c
Renamed SDL_HINT_IME_NATIVE_UI to SDL_HINT_IME_IMPLEMENTED_UI
...
This inverts the logic to make more sense from an application perspective.
2024-06-28 19:41:37 -07:00
SDL Wiki Bot
9332de9f25
Sync SDL3 wiki -> header
2024-06-29 00:09:51 +00:00
Sam Lantinga
4c7db129df
SDL_HINT_IME_INTERNAL_EDITING and SDL_HINT_IME_SHOW_UI are replaced with SDL_HINT_IME_NATIVE_UI
2024-06-28 17:09:22 -07:00
Sam Lantinga
def7a43a2e
SDL_HINT_IME_SHOW_UI defaults to SDL_TRUE
...
This hint is currently only used on Windows, and this matches the behavior of other platforms.
2024-06-24 20:32:03 -07:00
Sam Lantinga
fd3143f445
Added more documentation for SDL_HINT_MOUSE_RELATIVE_CURSOR_VISIBLE and SDL_HINT_MOUSE_RELATIVE_CLIP_INTERVAL
2024-06-23 00:11:56 -07:00
SDL Wiki Bot
398391b01e
Sync SDL3 wiki -> header
2024-06-23 07:11:23 +00:00
expikr
3b504c4a89
Add SDL_HINT_MOUSE_RELATIVE_CLIP_INTERVAL ( #10085 )
2024-06-23 00:09:59 -07:00
SDL Wiki Bot
ba188e7555
Sync SDL3 wiki -> header
2024-06-22 07:20:00 +00:00
Sam Lantinga
90034b16dc
The keycode in key events is affected by modifiers by default.
...
This behavior can be customized with SDL_HINT_KEYCODE_OPTIONS.
2024-06-22 00:19:06 -07:00
Hubert Maier
3acdb8a90b
JANITORIAL: Fix typos in comments in various files ( #10058 )
2024-06-19 07:13:46 -07:00
SDL Wiki Bot
65f0691866
Sync SDL3 wiki -> header
2024-06-16 13:21:56 +00:00
expikr
ee559d51be
Add SDL_MOUSE_RELATIVE_CURSOR_VISIBLE ( #7947 )
2024-06-16 06:21:29 -07:00
Ryan C. Gordon
38f0214e8a
audio: Refer to audio devices to "playback" and "recording".
...
Fixes #9619 .
2024-06-15 01:08:12 -04:00
Ryan C. Gordon
51902d4ac5
Updated headers with latest wikiheaders tweaks.
2024-06-14 02:09:55 -04:00
SDL Wiki Bot
2253c3cacf
Sync SDL3 wiki -> header
2024-06-13 21:49:55 +00:00
Sam Lantinga
0635112119
Added SDL_HINT_WINDOWS_ERASE_BACKGROUND_MODE (thanks @lostgoat!)
2024-06-13 14:54:36 -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