Sam Lantinga
8657fa8b3b
Improved reliability of the Steam Controller driver
2024-11-15 15:55:13 -08:00
expikr
f8468d580d
add brace for contitional
...
Co-authored-by: Sam Lantinga <slouken@libsdl.org >
2024-11-15 10:20:17 -08:00
expikr
eaef956a9a
fix errenous delta when warping
...
The following changes do not alter any logic:
- rename x/ydelta fields to x/y_accu to better reflect what it actually is about
- coalesce the logic for modifying internal state to one spot, branch based on whether the input was a move or a warp
The following changes alter the logic:
- put the x/y_accu addition under the relative branch only, warps should not add to the accumulation buffer by any definition
- (MAIN FIX) when the destination window desires relative mode, warp events should be dropped if SDL_MOUSE_RELATIVE_WARP_MOTION is false, or have x/yrel set to zero if true
2024-11-15 10:20:17 -08:00
Sam Lantinga
b54f6044a5
Removed Linux Steam Controller support
...
The HIDAPI driver has all the functionality we need on Linux
2024-11-15 08:53:40 -08:00
Sam Lantinga
b43b333d25
Moved the GPU renderer to the bottom of the list
...
We've gotten the feedback we wanted from having it first, so we'll move the other renderers back up for the widest compatibility across devices and platforms.
Fixes https://github.com/libsdl-org/SDL/issues/11468
2024-11-15 08:32:49 -08:00
Sam Lantinga
b71151a697
Added support for pairing controllers to the Steam Controller dongle
2024-11-14 20:04:31 -08:00
Sam Lantinga
f0b61c69e7
Fixed duplicate controllers showing up on the Steam Controller wireless dongle
2024-11-14 14:19:16 -08:00
Sam Lantinga
fe3566ca46
Ignore Steam Controllers in the Linux driver if HIDAPI is handling them
2024-11-14 11:20:52 -08:00
Sam Lantinga
7959b08a4d
Fixed spacing
2024-11-14 09:25:57 -08:00
Sam Lantinga
0f9505256d
Steam Controller support defaults off on mobile platforms
...
These platforms require prompting for Bluetooth permissions, so don't enable this by default.
2024-11-14 09:05:16 -08:00
Sam Lantinga
140aba9e5d
Enable Steam Controller support by default
...
It now handles both wired and wireless controllers and Steam will set SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES for Steam Controllers if it's handling them.
2024-11-14 08:18:03 -08:00
Cameron Gutman
68c2cf84f6
hidapi: Add support for the Steam Controller wireless dongle
2024-11-14 06:57:22 -08:00
Cameron Gutman
1a311bc638
hidapi: Add support for Steam controllers connected via USB
2024-11-14 06:57:22 -08:00
Cameron Gutman
e67ae274a5
hidapi: Fix bus type in HIDAPI_IGNORE_DEVICE() on Linux
...
This bug prevented the Steam Controller's keyboard and mouse
interfaces from being properly ignored by the HIDAPI joystick
driver on Linux.
2024-11-13 22:06:37 -06:00
Ryan C. Gordon
7007b4762b
events: Fix a compiler warning.
...
Fixes #11410 .
2024-11-13 20:03:21 -05:00
Sam Lantinga
9a4ae4b9ed
Fixed crash if SDL_GetVideoDisplayForWindow() returns NULL
2024-11-13 10:45:01 -08:00
cosmonaut
5a74aadac9
GPU: Null check shader inputs in CreateGPUGraphicsPipeline
2024-11-12 14:31:13 -08:00
Ryan C. Gordon
32cc92dceb
pipewire: i/o callbacks should avoid higher-level iteration during device open.
...
Sometimes these callbacks will fire while we're still waiting on state to
settle down in PIPEWIRE_OpenDevice, which means we're holding the device lock,
but then the i/o callback will fire from a background thread and also try to
grab the device lock, but can't, because PIPEWIRE_OpenDevice is holding it and
waiting for this i/o callback to finish...hence, a deadlock.
So now, if the device is still opening, output callbacks will write silence
and input callbacks will just flush the buffer, without calling the main
iterate function, and thus avoid obtaining the lock.
2024-11-12 15:18:41 -05:00
Evan Hemsley
119b4fa5f5
GPU: Remove D3D11 backend and allow D3D12 to ingest DXBC ( #11456 )
2024-11-12 10:55:21 -08:00
Andrei Alexeyev
332fd824f0
GPU Vulkan: release submitted command buffer after defrag ( #11430 )
2024-11-08 09:40:26 -08:00
Sam Lantinga
54ff1f35bd
Fixed audio dropouts when plenty of audio is queued on Android
2024-11-07 19:29:51 -08:00
Sam Lantinga
37b49c98dc
Fixed setting up surround sound on NVIDIA Shield TV
2024-11-07 19:05:29 -08:00
Semphris
3e2ef64c98
Add SDL_SaveFile and SDL_SaveFile_IO functions
2024-11-07 17:55:02 -08:00
Sam Lantinga
97dac37373
Added SDL_HINT_ANDROID_LOW_LATENCY_AUDIO
2024-11-07 16:34:34 -08:00
Sam Lantinga
6836ef8fd2
Added logging for low latency audio state
2024-11-07 16:31:35 -08:00
Sam Lantinga
908bd84c5e
Fixed reopening a controller on Android
2024-11-07 15:36:32 -08:00
Sam Lantinga
908b42f2b9
Fixed 8BitDo M30 mapping to match fighting game conventions and the layout in XInput mode
2024-11-05 11:43:28 -08:00
Sam Lantinga
028194286c
Added mappings for the various firmware versions of the 8BitDo SN30 Pro controller
...
Fixes https://github.com/libsdl-org/SDL/issues/9460
2024-11-05 11:43:28 -08:00
Sam Lantinga
ed943318e2
Support multiple joystick buttons bound to the same gamepad button
2024-11-05 11:43:28 -08:00
Sam Lantinga
27b828754a
Use HIDAPI to provide better names for DirectInput controllers
...
Fixes https://github.com/libsdl-org/SDL/issues/10207
2024-11-05 11:43:28 -08:00
Sam Lantinga
5a7b75607a
Added the OpenVR license to openvr_capi.h
...
License taken from https://github.com/ValveSoftware/openvr/blob/master/LICENSE
2024-11-04 13:32:59 -08:00
Sam Lantinga
c1246e31a4
Added support for the PowerA OPS v1 and v3 Pro wireless controllers
2024-11-04 12:05:57 -08:00
Sam Lantinga
d3b882b4f9
Added support for the PowerA Fusion Pro 4 and Fusion Pro Wireless controllers
2024-11-04 10:48:50 -08:00
Petar Popovic
96729e745a
SDL_GetClosestFullscreenDisplayMode(): Rename parameter mode
to closest
...
Also: Check, if the parameter is NULL inside the function.
2024-11-03 21:03:44 -08:00
Sam Lantinga
683991ab71
Get the full display bounds if the window doesn't fit in the usable bounds.
2024-11-03 20:58:18 -08:00
Sam Lantinga
6823e3f005
Fixed gaps in scaled 9-grid texture rendering
2024-11-03 20:47:45 -08:00
Frank Praznik
458f616c53
wayland: Send a display removed event when a display is disconnected
...
An event would be dispatched if a display was dynamically added after initialization, but not if one was removed.
2024-11-03 12:43:47 -05:00
Petar Popovic
73e0e8cf5b
SDL_GetDisplayForPoint(), SDL_GetDisplayForRect(): Check argument for NULL.
2024-11-03 07:55:07 -08:00
Sam Lantinga
8026866994
wayland: fixed memory leak at shutdown
2024-11-02 22:56:03 -07:00
Sam Lantinga
7031b240df
Added SDL_PROP_WINDOW_WAYLAND_VIEWPORT_POINTER
2024-11-02 22:22:29 -07:00
Sam Lantinga
87dade4421
Set SDL_PROP_RENDERER_MAX_TEXTURE_SIZE_NUMBER for the GPU renderer
...
Fixes https://github.com/libsdl-org/SDL/issues/11393
2024-11-01 18:38:42 -07:00
Sam Lantinga
927d297161
Updated to version 3.1.7 for development
2024-11-01 15:49:31 -07:00
Sam Lantinga
78cc5c1734
Updated to version 3.1.6 for the preview release
2024-11-01 14:27:01 -07:00
Sam Lantinga
c5f12b135d
Fixed the D-pad on wireless Xbox 360 controllers
2024-11-01 09:02:55 -07:00
Sam Lantinga
8b48b70c6e
Fixed return value setting state on combined Joy-Con controllers
2024-10-31 20:37:23 -07:00
expikr
e2857fc5a2
Update SDL_mouse.c
2024-10-30 12:01:51 -07:00
Maia
5699ba799e
Add return to CHECK_VULKAN_ERROR_AND_RETURN macro
2024-10-30 11:52:42 -07:00
Sam Lantinga
09495059df
Fixed the PS5 controller face buttons on Amazon Fire TV, Android 11
2024-10-30 05:23:00 -07:00
Sam Lantinga
c099d0525e
sort_controllers.py: fixed parsing SDL_PRIVATE_GAMEPAD_DEFINITIONS
2024-10-30 05:21:59 -07:00
M. P. Halpin
24bdbb8bf4
Supress Metal warning when compiling against macOS 10.11-10.13
2024-10-29 20:03:18 -07:00