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
Eduard Gushchin
92667e3066
Update SDL_keycode.h
...
Removed the link referring to yourself
2024-07-25 14:12:04 -07:00
Eduard Gushchin
3ee59359c4
Fix documentation references and update method usage for SDL_GetGamepadGUIDForID in SDL_gamepad.h
...
In the documentation for the SDL_GetGamepadGUIDForID method in the SDL_gamepad.h file, there are two references to the methods SDL_GetGamepadGUID and SDL_GetGamepadGUIDString, but there are no methods of its own. I replaced these two methods with the existing SDL_GUIDToString.
2024-07-25 11:43:41 -07:00
Anonymous Maarten
2aad26abb0
cmake: gate all preseeding behind SDL_PRESEED option
2024-07-25 16:42:11 +00:00
Ryan C. Gordon
546cd3ac83
cmake: Preseed CMake cache for Emscripten builds.
...
Makes a from-scratch build on this laptop go from 2 minutes 42 seconds to
28 seconds!
2024-07-25 16:42:11 +00:00
Dmitry Marakasov
0cd4fc7c87
Allow to enable vulkan support on FreeBSD ( #10361 )
2024-07-25 09:31:40 -07:00
Sam Lantinga
42650d79c1
Moved Android event initialization to SDL_InitEvents()
2024-07-25 09:25:00 -07:00
Ryan C. Gordon
53022aeb5e
examples: Use the existing CMake infrastructure instead of rolling our own.
2024-07-25 11:56:19 -04:00
hwsmm
8fa550e003
Check window fullscreen flag in SDL_GetWindowSizeInPixels
2024-07-25 08:49:50 -07:00
Sam Lantinga
e9a7014e56
Fixed hanging after onDestroy() on Android
2024-07-25 07:34:25 -07:00
Anonymous Maarten
9826f73230
cmake: fix copying of resource files on uwp
2024-07-25 16:01:57 +02:00
Anonymous Maarten
9f9ebcd40a
cmake: fix copying of example resource files on desktop, ps2 and psp
2024-07-25 14:54:20 +02:00
Sam Lantinga
e387314a67
Fixed building on older macOS SDK
2024-07-25 05:44:54 -07:00
Anthony
d6554a9505
Fix running on Android 9 and older
2024-07-25 04:41:43 -07:00
Daniel Ludwig
76c4c16ca9
Fix DXGI cleanup code
2024-07-25 11:35:10 +03:00
Daniel Ludwig
ff66ec5fb5
GDK build: fix Xbox targets
2024-07-25 11:35:10 +03:00
Daniel Ludwig
7e48d4522b
GDK build: move suspend/constrain setup back to previous compilation unit
2024-07-25 11:35:10 +03:00
Daniel Ludwig
0a678a654e
GDK build: fix project settings and API changes
2024-07-25 11:35:10 +03:00
SDL Wiki Bot
ba8495c214
Sync SDL3 wiki -> header
2024-07-25 00:41:44 +00:00
Sam Lantinga
cf8b158ccb
Added SDL_GetRenderSafeArea()
2024-07-24 17:40:41 -07:00
Sam Lantinga
eb09264076
Added the safe area to the debug window information
2024-07-24 17:40:41 -07:00
Sam Lantinga
9e6d5babce
Fixed display detection after the monitor resolution changed on X11
2024-07-24 17:46:25 -07:00
Sam Lantinga
b98e1e9ef0
Fixed the render viewport not updating when the metal view resizes
...
When the phone is in portrait mode and the window is in landscape mode, the view changes orientation after layoutSubviews runs. In this case we need some way of notifying the application that the Metal view has changed.
2024-07-24 16:12:29 -07:00
Ryan C. Gordon
195c26a50a
examples: Add a way to add datafiles to an example, and add audio/load-wav
2024-07-24 17:30:55 -04:00
Sam Lantinga
f562a6d9f7
Added Android API level 35 to the table
2024-07-24 14:09:54 -07:00
Sam Lantinga
e7771fb4f6
Fixed memory corruption in SDL_GetPreferredLocales()
...
Fixes https://github.com/libsdl-org/SDL/issues/10362
2024-07-24 13:37:40 -07:00
Sam Lantinga
31730bef1a
Fixed running on Android 10 and older (thanks @AntTheAlchemist!)
2024-07-24 13:37:40 -07:00
Sam Lantinga
c601120883
Handle all Android lifecycle events on the main thread
...
This restructuring also allows us to wait efficiently in SDL_WaitEvent() on Android
2024-07-24 13:37:40 -07:00
Sam Lantinga
a7c0192017
Renamed SDL_PostSemaphore() to SDL_SignalSemphore()
2024-07-24 13:37:40 -07:00
Anthony
27f86cbe18
Update proguard-rules.pro to include onNativeInsetsChanged
2024-07-24 10:22:45 -07:00
Sam Lantinga
83c7ce2681
Android life cycle behavior more closely matches iOS
...
On iOS, the application gets one last change to process messages before going into the background. We do the same on Android, which more closely matches the previous behavior.
2024-07-24 06:18:18 -07: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
Sam Lantinga
fff783de6c
Fixed life cycle events on iOS when using main callbacks
2024-07-24 05:11:13 -07:00
Sam Lantinga
45fc548562
Don't queue application events that need to be handled immediately
...
This makes it more clear that these events can't be handled in the normal event loop. It also makes pause and resume transparent to applications that don't handle them, which is a nice side effect.
2024-07-24 05:11:13 -07:00
Sam Lantinga
fa0918a686
Renamed SDL life cycle functions
...
This maps better to how SDL delivers the events, and the iOS delegate methods are in the documentation for reference.
2024-07-24 05:11:13 -07:00
Ryan C. Gordon
06c0ed68b1
mac: Rename Objective-C classes that conflict with SDL2.
...
Fixes #6709 .
2024-07-24 01:35:04 -04:00
Sam Lantinga
f0363a0466
Functions that return display modes return temporary memory.
...
Also use the real pointer to display modes for internal mode processing
Fixes https://github.com/libsdl-org/SDL/issues/10353
2024-07-23 19:26:19 -07:00
SDL Wiki Bot
10dcae784b
Sync SDL3 wiki -> header
2024-07-24 00:07:31 +00:00
Sam Lantinga
457ca3995c
Added SDL_GetWindowSafeArea()
...
Fixes https://github.com/libsdl-org/SDL/issues/3243
2024-07-23 17:06:04 -07:00
Sam Lantinga
1c4cc2b024
Updated Android minimum API level to 21 (Android 5.0)
...
This is necessary for the window safe area support, and is a reasonable default for SDL 3.0
2024-07-23 17:06:04 -07:00
Sam Lantinga
57dcd7993f
Update the package name in the app build.gradle
...
Also only change the name of the activity in AndroidManifest.xml, not all of the descriptive text saying to change the name of the activity.
2024-07-23 17:06:04 -07:00
Sam Lantinga
a432221db5
Specify that this script uses python3
...
Fixes running on macOS
2024-07-23 17:06:04 -07:00
SDL Wiki Bot
230161a50c
Sync SDL3 wiki -> header
2024-07-23 22:49:23 +00:00
Ryan C. Gordon
bd65d154d5
examples: Added audio/simple-playback-callback.
2024-07-23 17:52:42 -04:00
Ryan C. Gordon
ea137cfbaf
examples: Fix window titles.
2024-07-23 17:52:24 -04:00
Ryan C. Gordon
35a1cf910a
examples/audio/simple-playback: Add a description to the example.
2024-07-23 17:33:33 -04:00
Sam Lantinga
66011e497d
Removed duplication in SDL_EGL_* function names
2024-07-23 13:11:37 -07:00
Eduard Gushchin
86934975b9
Update SDL_video.h
...
Fixed a typo in the function name in the documentation for SDL_EGL_GetProcAddress
2024-07-23 12:48:10 -07:00
Ryan C. Gordon
f5f44de155
examples: Add audio/01-simple-playback.
2024-07-23 14:52:31 -04:00
Ryan C. Gordon
5216aea31d
examples: Explicitly call SDL_Init().
2024-07-23 14:52:30 -04:00