hwsmm
ac5b2b6102
Don't send text event while ctrl/alt is held on X11/Wayland
2025-03-20 22:30:10 -04:00
Edu Garcia
365b7837c2
add private definitions to SDL_build_config.h.cmake
2025-03-20 16:55:51 -07:00
Max
817260c73d
Updates SDL_SetEventFilter code snippet to SDL3
...
SDL_EventFilter points to a function that now returns a bool
2025-03-20 16:42:34 -07:00
Sam Lantinga
3fd61b0535
Updated for SDL style
2025-03-20 16:42:40 -07:00
Temdog007
581b614291
Emscripten: Support Custom Message Boxes ( #12583 )
...
* Allow custom message boxes with colors and multiple buttons to work if Asyncify is enabled
* Keep old functionality of using alert when Asyncify is not available
* Update testmessage to allow for setting random colors as the color scheme of the message box
2025-03-20 16:33:06 -07:00
Carl Åstholm
54f5b73333
emscripten: Don't use legacy JS library functions for assertions
2025-03-20 16:24:16 -07:00
Sam Lantinga
03a53ce0d1
Always show the on-screen keyboard on Steam Deck
...
Steam will eventually have smarts about whether a keyboard is active and will igore the request appropriately.
Fixes https://github.com/libsdl-org/SDL/issues/12595
2025-03-20 16:19:50 -07:00
Sam Lantinga
8caeaaacdd
A Steam Controller might be generating keyboard input
...
We can't use keyboard input as a signal about whether a keyboard is attached. There might be keyboard input from any number of generated inputs or non-keyboard devices.
2025-03-20 16:19:50 -07:00
Sam Lantinga
cbb83be895
Show the on-screen keyboard if we don't have active keyboard input
...
Active keyboard input is based on the input the user has most recently sent.
Fixes https://github.com/libsdl-org/SDL/issues/12595
2025-03-20 16:19:50 -07:00
SDL Wiki Bot
67b4c3a156
Sync SDL3 wiki -> header
...
[ci skip]
2025-03-20 19:53:05 +00:00
Ryan C. Gordon
10072bb07d
asyncio: SDL_LoadFileAsync was not null-terminating the file data.
2025-03-20 15:50:06 -04:00
Ryan C. Gordon
85435d5a14
SDL_audio.h: Fixed typos in docs.
2025-03-20 15:50:06 -04:00
Sam Lantinga
3ed61f203e
Fixed applications that integrate Qt with SDL joystick support
2025-03-20 12:16:44 -07:00
Anonymous Maarten
de60a5f398
Revert "Make native functions be public otherwise it fails at run-time."
...
This reverts commit 4fd4d89b63
.
This ended up not being necessary since the Android build system
does not minify by default.
When you're minifying, you need to use the proguard rules anyways.
https://github.com/libsdl-org/SDL/pull/12553#issuecomment-2740795848
2025-03-20 19:31:48 +01:00
Sam Lantinga
fe024b8fe3
Fixed typo in build.gradle
2025-03-20 11:22:03 -07:00
Sam Lantinga
10fae8c34b
Fixed Android build warnings
2025-03-20 11:02:33 -07:00
Sam Lantinga
bf7b9b020e
Fixed gradle deprecation warnings
...
"Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0"
2025-03-20 11:02:04 -07:00
Sam Lantinga
ac28702504
Use the android-21 SDK as documented in README-android.md
2025-03-20 10:47:43 -07:00
Sam Lantinga
476e7e54cb
Don't create surfaces with invalid pixel formats
...
Fixes https://github.com/libsdl-org/SDL/issues/12556
2025-03-20 09:42:52 -07:00
Eri the Switch
6f456da63f
GPU: Request sampleRateShading feature on Vulkan
2025-03-20 09:31:34 -07:00
Sylvain
4fd4d89b63
Make native functions be public otherwise it fails at run-time.
...
(they are public such as the one in SDLActivity)
2025-03-20 12:11:49 +01:00
Sam Lantinga
f2ed5c7a1b
Fix illegal calls to DwmGetWindowAttribute()
...
DWMWA_WINDOW_CORNER_PREFERENCE and DWMWA_BORDER_COLOR are only supported for DwmSetWindowAttribute(), they can't be queried.
Fixes https://github.com/libsdl-org/SDL/issues/12206
Closes https://github.com/libsdl-org/SDL/pull/12209
2025-03-19 22:00:42 -07:00
Sam Lantinga
96bf12444c
Windows allows windows to be resized to zero height.
...
Changed the window client rect validation to take this into account.
Fixes https://github.com/libsdl-org/SDL/issues/9796
2025-03-19 21:16:35 -07:00
Sam Lantinga
47b0c75470
Make sure we're getting called for the correct window
...
Fixes https://github.com/libsdl-org/SDL/issues/12525
2025-03-19 20:20:36 -07:00
Sam Lantinga
3415bc920a
Fixed crash if a window couldn't be created on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/11482
2025-03-19 20:10:24 -07:00
Dragon-Baroque
07e4dea693
The posix4 library has been merged into the libc library
2025-03-19 16:57:45 -07:00
Anonymous Maarten
9820f655dd
android: reduce visiblity as much as possible
2025-03-19 23:36:08 +01:00
Evan Hemsley
c696e93180
GPU Vulkan: Fix render pass race ( #12587 )
2025-03-19 13:32:14 -07:00
Frank Praznik
7b93a744c8
time: Fix compilation on Solaris
...
The tm_gmtoff field of the broken-down time 'tm' struct wasn't formally standardized until POSIX.1-2024, but practically it has been available on desktop *nix platforms such as Linux/glibc, FreeBSD, OpenBSD, NetBSD, OSX/macOS (NextStep before that), and others since the 1990s. The notable exception is SunOS/Solaris, where the timezone offset must still be retrieved in the strictly POSIX.1-2008 compliant way.
2025-03-19 12:19:42 -04:00
Carl Åstholm
14deef997c
emscripten: Fix undefined behavior in opengles2 renderer
2025-03-18 19:18:24 -07:00
Ethan Lee
5283f73748
storage: Declare a private bootstrap for NDA user storage
2025-03-18 22:12:21 -04:00
Sam Lantinga
8b924df48b
Use an autoreleasepool in Cocoa_GetDisplayUsableBounds()
...
Fixes https://github.com/libsdl-org/SDL/issues/12571
2025-03-18 14:36:48 -07:00
Sam Lantinga
82335fd0e9
Fixed building with SDL_LEAN_AND_MEAN
...
Fixes https://github.com/libsdl-org/SDL/issues/12578
2025-03-18 09:55:23 -07:00
Arnoldo Adonaí Barón Robles
a551c2a6d7
Fix Vulkan error check
2025-03-17 22:10:54 -07:00
Sam Lantinga
5985f0a327
Fixed infinite recursion in SDL_IsGamepad()
...
SDL_IsGamepad() calls SDL_GetJoystickTypeForID(), which will call SDL_IsGamepad() if it's not a known controller type. The new code which is breaking was added to prevent Logitech FFB wheels from showing up as gamepads, which we check for separately.
2025-03-17 19:10:26 -07:00
Caleb Cornett
6d0fb0a2e6
gpu: Fix MTLLibrary dispatch data destructor
2025-03-17 18:53:40 -07:00
JaimeHW
3e5664a5be
Fix return type in SDL_CreateGPURenderState
2025-03-17 15:22:49 -07:00
Sam Lantinga
4fc9509ab7
Fixed raw input device GUIDs changing randomly between runs
...
On Windows 11, apparently HidD_GetManufacturerString() and HidD_GetProductString() can return TRUE without actually filling in any string data.
Fixes https://github.com/libsdl-org/SDL/issues/12566
2025-03-17 13:54:56 -07:00
Evan Hemsley
0bd70684b3
GPU: Fix Vulkan backend never checking deallocations ( #12567 )
...
---------
Co-authored-by: Sam Lantinga <slouken@libsdl.org >
2025-03-17 13:19:41 -07:00
Sam Lantinga
715301cef5
Fixed crash if info->path is NULL
2025-03-17 09:46:41 -07:00
Jan200101
f5eea7efa2
remove status message for SDL_STATIC_PIC
...
PIC is controlled through CMAKE_POSITION_INDEPENDENT_CODE and not by an SDL option
2025-03-17 07:29:50 -07:00
Katharine Chui
35c03774f3
[SDL3] Adding input and FFB support for Logitech G29(PS3) on hidapi ( #11598 )
...
These changes enable the Logitech G29 wheel to run on hidapi with both SDL_Joystick and SDL_Haptic interfaces.
While it is already possible to use the wheel on Linux in WINE + SDL2 thanks to the in-tree evdev driver as well as new-lg4ff, these set of changes allow the G29 to be used with WINE under MacOS and FreeBSD
These wheels should also be supported, but I can only test them from G29's compat modes: G27, G25, DFGT, DFP, DFEX
Haptic and led support are ported from https://github.com/berarma/new-lg4ff
2025-03-17 07:24:39 -07:00
Frank Praznik
d66483dfcc
video: Send pending coordinates for moved, hidden windows
...
Some backends can't actually position a window until it is shown/mapped, so assume that it will be where it was asked to be as long as it is hidden.
2025-03-16 11:33:12 -04:00
Anonymous Maarten
b9504f247c
opengl: pixelart fragment shader uses GLSL version 1.30
2025-03-15 21:58:10 -07:00
Anonymous Maarten
05531c5f4b
release: use NDK r21e for building Android release artifact
...
[ci skip]
2025-03-16 03:02:18 +01:00
DamianS-eng
18185e30e9
Remove breaks under return
2025-03-15 16:19:36 -07:00
DamianS-eng
80ff0f45fd
Move default
2025-03-15 16:19:36 -07:00
DamianS-eng
3b58ad9d48
Add breaks and defaults to switch statements
2025-03-15 16:19:36 -07:00
DamianS-eng
8b6e9936e0
Missed a bracket
2025-03-15 16:19:36 -07:00
DamianS-eng
36ec4cd397
Align spacing
2025-03-15 16:19:36 -07:00