Sam Lantinga
77b520e93e
Updated to version 3.2.1 for development
2025-01-21 14:02:06 -08:00
Sam Lantinga
535d80bade
Include the README and related files in the SDL framework
2025-01-21 10:51:21 -08:00
Sam Lantinga
ed2920afef
All SDL 3.0 release symbols are at version 3.2.0
2025-01-21 10:19:21 -08:00
Sam Lantinga
b775135b4f
Removed temporary debug code
2025-01-21 08:57:08 -08:00
Sam Lantinga
a52fc209bb
Updated to version 3.2.0 for release
2025-01-21 08:52:28 -08:00
Sam Lantinga
8526868563
dialog: cleaned up D-Bus portal implementation
...
Fixes https://github.com/libsdl-org/SDL/issues/12036
2025-01-20 22:57:42 -08:00
Sam Lantinga
b476695e67
Call the windows message hook while inside a modal message loop
...
Fixes https://github.com/libsdl-org/SDL/issues/12029
2025-01-20 15:56:23 -08:00
Sam Lantinga
075c0337cd
Removed debug print statement
2025-01-20 13:11:19 -08:00
Sam Lantinga
a036aeda3b
The Vulkan renderer doesn't actually support RGB texture formats
...
Fixes https://github.com/libsdl-org/SDL/issues/10400
2025-01-20 13:09:49 -08:00
Sam Lantinga
9b454a762c
Revert "testautomation: don't validate alpha values on XRGB formats"
...
This reverts commit 759e01bd64 .
It's better to return the expected format from SDL_RenderReadPixels() than skip alpha testing.
2025-01-20 12:57:48 -08:00
Sam Lantinga
759e01bd64
testautomation: don't validate alpha values on XRGB formats
...
The results are not defined, and some renderers set 0xFF always and other renderers set the alpha to blend results, even though it won't be used when rendering.
Fixes --filter render_testBlendModes with D3D renderers
2025-01-20 11:29:41 -08:00
Sam Lantinga
c698c61f03
renderer: initialize the surface colorspace correctly
...
Fixes https://github.com/libsdl-org/SDL/issues/12027
2025-01-20 10:48:13 -08:00
Sam Lantinga
c975f77b0f
Update joysticks and so forth during live resize
...
Fixes https://github.com/libsdl-org/SDL/issues/12022
2025-01-20 10:11:31 -08:00
Sam Lantinga
362f96a6cf
testcontroller: use SDL_MAIN_USE_CALLBACKS so updates happen during live resizing
2025-01-20 10:11:31 -08:00
Sam Lantinga
f8040b2e01
Use UIKeyboardTypeDecimalPad for number fields on iOS
...
Fixes https://github.com/libsdl-org/SDL/issues/12025
2025-01-20 09:09:57 -08:00
Sam Lantinga
5f2dd5f04e
tray: fixed multi-threading issues with GTk implementation
...
GTK+ documentation states that all GDK and GTK+ calls should be made from the main thread.
Fixes https://github.com/libsdl-org/SDL/issues/11984
2025-01-19 18:53:55 -08:00
Sam Lantinga
dfdc120268
tray: document thread-safety
2025-01-19 18:53:55 -08:00
Sam Lantinga
d4cda51057
tray: renamed SDL_HasNoActiveTrays() to SDL_HasActiveTrays()
2025-01-19 18:53:55 -08:00
Sam Lantinga
a974888aad
tray: fixed icon colors on Windows
2025-01-19 18:53:55 -08:00
Sam Lantinga
7570ab106d
tray: improved error checking
...
Also clean up any existing trays when the program quits
Fixes https://github.com/libsdl-org/SDL/issues/11893
2025-01-19 18:53:55 -08:00
Sam Lantinga
b716eeefef
testtray: minor cleanup
2025-01-19 18:53:55 -08:00
Sam Lantinga
3afd1e7eaa
windows: use WIN_UTF8ToStringW() for dialog titles
2025-01-19 18:53:55 -08:00
Sam Lantinga
049a8f0e52
Use SDL_calloc() instead of SDL_malloc()
...
This automatically initializes memory to zero so you don't have uninitialized memory bugs
2025-01-18 13:41:23 -08:00
Sam Lantinga
ba95c54f99
macOS: get the correct display name on macOS 10.15+
2025-01-18 09:42:37 -08:00
Sam Lantinga
cd0db8d35e
Added Linux evdev mappings for the Wireless HORIPAD For Steam
2025-01-18 08:09:25 -08:00
Sam Lantinga
c7d1fd90ea
Added support for the 8BitDo Ultimate 2C Wireless in Bluetooth mode
...
Closes https://github.com/libsdl-org/SDL/pull/11415
2025-01-18 07:06:46 -08:00
Sam Lantinga
ad3c7b92f8
xcode+cmake: use SDL3.framework folder as IMPORTED_LOCATION
...
[ci skip]
2025-01-18 06:27:21 -08:00
Sam Lantinga
0401b07eea
Fixed typo
2025-01-18 06:23:14 -08:00
Sam Lantinga
08e74d29be
Fixed typo
2025-01-18 06:22:29 -08:00
Sam Lantinga
923123a527
emscripten: Let SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT accept "#none"
...
This is used to say "don't even try to listen for keypresses," for apps that
are managing this outside of SDL.
Fixes #10292 .
2025-01-18 06:19:27 -08:00
Sam Lantinga
c603a9c94a
Moved flag documentation
2025-01-18 06:16:10 -08:00
Sam Lantinga
90b7174a7d
Respect the SDL_BORDERLESS_RESIZABLE_STYLE hint, but default it to true.
2025-01-18 06:07:06 -08:00
Sam Lantinga
7c6adc1ca7
gpu renderer: removed unused sampler slots
...
There used to be 3 scale modes, now there are only 2.
2025-01-17 16:31:40 -08:00
Sam Lantinga
59ea078ee2
x11: check to see if displays moved when connected/disconnected
...
Fixes https://github.com/libsdl-org/SDL/issues/9738
2025-01-17 13:14:16 -08:00
Sam Lantinga
656c519cca
Fixed warning C6313: Incorrect operator. Use an equality test to check for zero-valued flags.
2025-01-17 12:08:58 -08:00
Sam Lantinga
ae8df1dcbd
Note that the primary monitor isn't always at 0,0
2025-01-17 11:52:33 -08:00
Sam Lantinga
4b429b9fa7
Updated README-platforms.md
...
Also added platform specific README files
2025-01-16 16:21:18 -08:00
Sam Lantinga
616ae99069
Removed README-git.md
...
We're fully hosted on GitHub, no need for additional explanation.
2025-01-16 15:45:51 -08:00
Sam Lantinga
eb168e410c
Updated to version 3.1.11 for development
2025-01-16 11:41:28 -08:00
Sam Lantinga
21a42d2b0d
Add CategoryAPICategory to the complete API index
2025-01-16 09:26:00 -08:00
Sam Lantinga
d8e1ad0ebc
release: skip extended Android SDK versions
2025-01-16 09:07:00 -08:00
Sam Lantinga
1dd8fadca2
Updated to version 3.1.10 for the release candidate
2025-01-16 08:33:18 -08:00
Sam Lantinga
ea642fe9ff
cocoa: clear mouse focus based on NSEventTypeMouseExited events ( #11991 )
...
We can't directly set the mouse focus since we may get spammed by entered/exited events,
but we can process the current focus later in the mouseMoved handler in line with the
mouse motion event sequence.
Fixes https://github.com/libsdl-org/SDL/issues/8188
2025-01-15 23:34:20 -08:00
Sam Lantinga
5f4696ce63
Updating documentation for the 3.2.0 release
...
* Simplified and updated the mingw release archive
* Simplified and updated the msvc release archive
* Updated the Xcode release archive
* Updated the Android release archive
2025-01-15 20:38:16 -08:00
Sam Lantinga
2c7b7d1d33
Keep the lifecycle observer active while there are windows active
...
Fixes https://github.com/libsdl-org/SDL/issues/11627
2025-01-15 17:10:49 -08:00
Sam Lantinga
fc9b2478d8
windows: don't set focus click pending if SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH is set
...
Fixes https://github.com/libsdl-org/SDL/issues/11976
2025-01-15 10:54:12 -08:00
Sam Lantinga
18d21b36fe
windows: use the initial rect to anchor fixed aspect ratio resizing
...
Fixes https://github.com/libsdl-org/SDL/issues/11688
2025-01-15 10:33:22 -08:00
Sam Lantinga
1995471927
cocoa: fixed resizing windows with fixed aspect ratio
...
The existing algorithm works well for min-max ratios, but didn't allow edge expansion of fixed aspect ratio windows. Use NSWindow setContentAspectRatio instead.
2025-01-15 10:05:34 -08:00
Sam Lantinga
67382e9c83
Fixed detection of function keys on Emscripten
...
Fixes https://github.com/libsdl-org/SDL/issues/11973
2025-01-15 08:07:38 -08:00
Sam Lantinga
23410debf7
SDL_GetKeyboardNameForID(): Set an error message for invalid keyboard IDs
2025-01-15 00:01:06 -08:00
Sam Lantinga
51fa076fdc
Don't send normal keyboard events if no application window has focus
...
This can happen if all the windows shown have the SDL_WINDOW_NOT_FOCUSABLE flag. We'll still accept modifier state changes though, so you can do Control-click actions.
2025-01-14 23:44:43 -08:00
Sam Lantinga
a446381ea9
Tooltips and unfocusable windows can't become main windows
2025-01-14 23:44:43 -08:00
Sam Lantinga
8e9c44bc3b
Fixed accidental removal of optional delegate interface check
...
Fixes https://github.com/libsdl-org/SDL/issues/11970
2025-01-14 22:35:13 -08:00
Sam Lantinga
4dd585fb62
coreaudio: convert MPEG channel layout to WAVE channel layout
2025-01-14 22:26:16 -08:00
Sam Lantinga
81e57147f8
Child windows shouldn't take focus if the parent window is in relative mouse mode
...
Fixes https://github.com/libsdl-org/SDL/issues/11807 on Windows
2025-01-14 21:27:06 -08:00
Sam Lantinga
9ed23a4b79
Updated SDL_SetEventFilter() documentation
2025-01-14 19:25:31 -08:00
Sam Lantinga
e19a56f4d5
Don't send fake key events while processing real ones on Android
...
Fixes https://github.com/libsdl-org/SDL/issues/11350
2025-01-14 19:05:07 -08:00
Sam Lantinga
1ab61635a9
Use SDL_Log() for keyboard debugging.
2025-01-14 19:05:07 -08:00
Sam Lantinga
29c684c626
Removed debug logging
2025-01-14 18:05:37 -08:00
Sam Lantinga
0eaa6197c5
Removed unnecessary __builtin_available check
2025-01-14 17:00:30 -08:00
Sam Lantinga
ffe194c52e
Fixed build when SDL_JOYSTICK_MFI isn't enabled
2025-01-14 17:00:30 -08:00
Sam Lantinga
a4547fe77a
Updated weak framework dependencies for new deployment targets
2025-01-14 17:00:30 -08:00
Sam Lantinga
49dd24e195
Fixed potentially overlapping memcpy() to use memmove()
2025-01-14 14:31:20 -08:00
Sam Lantinga
b2793a2ce2
Removed obsolete Raspberry Pi documentation
2025-01-14 12:58:30 -08:00
Sam Lantinga
04e3b67707
Removed outdated Visual Studio instructions
2025-01-14 12:22:15 -08:00
Sam Lantinga
a41f93bd10
Added https://github.com/Ravbug/sdl3-sample as a more complete Android example
2025-01-14 12:22:00 -08:00
Sam Lantinga
5ca735b40f
Only use WAVE surround sound channel layouts on macOS 10.15+
2025-01-14 12:03:07 -08:00
Sam Lantinga
cdde6dd7bb
Bumped deployment requirements for Apple platforms
...
We require at least Xcode 12.2 and macOS SDK 11 to build. We support deploying to macOS 10.13, iOS 11.0, and tvOS 11.0.
This cleans up the code significantly
2025-01-14 12:03:07 -08:00
Sam Lantinga
8f8af918ba
Removed CMakeLists.txt example that says you shouldn't use it
2025-01-14 11:15:34 -08:00
Sam Lantinga
8feb21a1d1
Updated README-cmake.md with build instructions for several platforms
2025-01-14 11:15:34 -08:00
Sam Lantinga
d28e953222
Added thread safety documentation for SDL_iostream.h
...
Fixes https://github.com/libsdl-org/SDL/issues/11942
2025-01-13 17:17:17 -08:00
Sam Lantinga
0eaa8c6d81
Added INTRO-emscripten.md
2025-01-13 16:42:50 -08:00
Sam Lantinga
21b433536a
Scale up the text for large displays
2025-01-13 16:42:50 -08:00
Sam Lantinga
6bc7e88ca6
Added INTRO-androidstudio.md
2025-01-13 16:42:50 -08:00
Sam Lantinga
e4e76ac72e
Added INTRO-xcode.md
2025-01-13 16:42:50 -08:00
Sam Lantinga
1b30a01b44
Added INTRO-visualstudio.md
...
Also removed out of date Visual C++ documentation
2025-01-13 16:42:50 -08:00
Sam Lantinga
191b9d5021
Added INTRO-cmake.md
2025-01-13 16:42:50 -08:00
Sam Lantinga
7d2a1c5f8f
Mention the tests in INSTALL.md
2025-01-13 16:42:50 -08:00
Sam Lantinga
b6b9390444
Simplified INSTALL.md
2025-01-13 16:42:50 -08:00
Sam Lantinga
55e094f7ac
Updated INSTALL.md with simple intro breadcrumbs
2025-01-13 16:42:50 -08:00
Sam Lantinga
584c1d5791
Tweaking the README
2025-01-13 16:42:50 -08:00
Sam Lantinga
995a6a0333
Minor readability improvement for README-contributing.md
2025-01-13 16:42:50 -08:00
Sam Lantinga
86b46c678c
Removed README-git.md
...
We're fully hosted on GitHub, no need for additional explanation.
2025-01-13 16:42:50 -08:00
Sam Lantinga
96414fa56a
Removed obsolete Raspberry Pi documentation
2025-01-13 16:42:50 -08:00
Sam Lantinga
670db4d248
Made the README links in INSTALL.md markdown links
2025-01-13 16:42:50 -08:00
Sam Lantinga
b08d045811
Added a Discord link to BUGS.txt
2025-01-13 16:42:50 -08:00
Sam Lantinga
2ad0f1e1fe
Updated the credits for SDL 3.0
2025-01-13 16:42:50 -08:00
Sam Lantinga
41d48db4ae
Removed the runtime README
...
The main README is suitable for inclusion in redistributable archives and we'll have custom installation instructions for each platform.
2025-01-13 16:42:50 -08:00
Sam Lantinga
922b73195c
Simplified the README
2025-01-13 16:42:50 -08:00
Sam Lantinga
5e4a2974aa
Removed obsolete warnings about MIT licensed SIMD code
...
We no longer use the code this was warning about
2025-01-13 16:42:50 -08:00
Sam Lantinga
e5a4f09363
Call SDL_UDEV_Quit() if we don't end up using it
2025-01-13 10:22:10 -08:00
Sam Lantinga
66408308b8
Added documentation for mouse handling in relative mode
...
Fixes https://github.com/libsdl-org/SDL/issues/11805
2025-01-13 09:52:21 -08:00
Sam Lantinga
611f132fd0
Don't use a hint callback for SDL_HINT_ANDROID_ALLOW_RECREATE_ACTIVITY
...
This was originally intended to make sure that nativeAllowRecreateActivity() could be called from another thread safely, but the hint system is now thread-safe, so we don't need to use a callback here.
Fixes https://github.com/libsdl-org/SDL/issues/11938
2025-01-13 07:49:09 -08:00
Sam Lantinga
c4f2f7b352
Removed redundant information in example pages
...
This is large text and is already covered by the header and breadcrumb
2025-01-12 15:57:48 -08:00
Sam Lantinga
21cc1878f1
Reset enhanced mode state when closing a controller
...
Fixes https://github.com/libsdl-org/SDL/issues/11912
2025-01-12 10:45:54 -08:00
Sam Lantinga
b524af1b43
testcontroller: log the ID of gamepads as they are added and removed
2025-01-12 10:02:39 -08:00
Sam Lantinga
551510c0eb
SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE can be combined with SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE
2025-01-12 08:05:51 -08:00
Sam Lantinga
4231848791
Revert "Separate android initialization from Activity ( #11891 )"
...
This reverts commit d14c93c4b1 .
This is a major breaking change for activities that inherit SDLActivity
2025-01-10 15:27:08 -08:00
Sam Lantinga
042898995c
Added SDL_ClickTrayEntry()
...
Also removed the app delegate from the tray code on Cocoa and folded that into SDL3AppDelegate.
Fixes https://github.com/libsdl-org/SDL/issues/11906
2025-01-10 12:55:50 -08:00
Sam Lantinga
715897aea7
Added support for displaying XIM composition strings
...
Fixes https://github.com/libsdl-org/SDL/issues/6437
2025-01-10 03:26:42 -08:00