Anonymous Maarten
cf267e4985
Fix -Wunused-variable warning in src/video/x11/SDL_x11events.c
2024-06-21 17:39:37 +02:00
Simon McVittie
53eff7f903
testevdev: Add X-Box One S controller via xpadneo 0.9.x
...
This is an out-of-tree driver providing an alternative interface to
X-Box gamepads. Compared with the in-kernel driver, it adds four
pseudo-buttons used to indicate which profile is active, and an
optional "misc" axis that combines the two triggers into a rudder.
Partially addresses libsdl-org/SDL#7823
Thanks: @kakra
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-06-21 07:05:26 -07:00
Simon McVittie
2804f92eff
testevdev: Add missing device ID for Wiimote Classic Controller
...
Thanks: Jeremy Whiting
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-06-21 07:04:56 -07:00
Simon McVittie
c244eb937b
testevdev: Add the virtual X360 controller created by Steam Input
...
Thanks: Robert Beckett
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-06-21 07:02:23 -07:00
Simon McVittie
f471392e73
testevdev: Add test data from Steam Deck built-in devices
...
Thanks: Robert Beckett
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-06-21 07:02:23 -07:00
Simon McVittie
740850d3ce
testevdev: Add a field for the USB device version
...
For some devices, such as the Steam Deck's built-in Steam Controller,
the version number reported via evdev and the version number reported
via USB are different. We don't currently use this information anyway,
but in case we want to use it in the future, let's include it in our
test data.
Signed-off-by: Simon McVittie <smcv@collabora.com>
2024-06-21 07:02:23 -07:00
Anonymous Maarten
0f27686a51
tests: run tests under a minimal debugger that can create minidumps
...
Tests on ci are run using this dumper, and will upload the minidumps.
2024-06-21 12:39:11 +02:00
Sam Lantinga
6e53a36414
Fixed Y + right shoulder button combination on third party Switch controllers
2024-06-20 14:39:04 -07:00
SDL Wiki Bot
83933fdfa0
Sync SDL3 wiki -> header
2024-06-20 19:55:37 +00:00
Frank Praznik
2f276a2eea
video: Expose HDR metadata per-window
...
Moves the HDR properties from the display to be per-window, and adds the frog_color protocol to enable HDR under Wayland.
2024-06-20 15:55:07 -04:00
Blaž Tomažič
0383333b54
android: add an option to manually pass the context when loading a native library
...
(cherry picked from commit b444e656cdb488ae86fac6479e75fead561546eb)
2024-06-20 10:38:59 -07:00
Blaž Tomažič
3b5f35138e
android: actually use ReLinker
...
When loading libraries the `SDL.mContext` is still `null`. This results in
relinker code path in `SDL.loadLibrary(...)` always throwing a null exception
and fallbacking to system loader.
Fix it by passing the context explicitly.
(cherry picked from commit 6a2dd96ac7ce5c0575e91290a983048c0e5e6d2c)
2024-06-20 09:36:17 -07:00
Anonymous Maarten
72d5f39e5c
Make testnative (on win32) UNICODE compatible
2024-06-20 15:40:32 +02:00
Anonymous Maarten
992f80eb51
testnative: include SDL_build_config.h instead of SDL_internal.h
2024-06-20 15:40:32 +02:00
SDL Wiki Bot
e6944584a0
Sync SDL3 wiki -> header
2024-06-20 00:01:27 +00:00
John Kaniarz
8a80f41b77
Added check for n<0 in SDL_rand_n()
2024-06-19 17:00:58 -07:00
John Kaniarz
38cac043af
Added algorithm comments to SDL_rand_*()
2024-06-19 17:00:58 -07:00
John Kaniarz
8f29f8cae5
Renamed SDL_rand() to SDL_rand_bits() and updated tests
2024-06-19 17:00:58 -07:00
SDL Wiki Bot
237bbfcb9d
Sync SDL3 wiki -> header
2024-06-19 18:02:45 +00:00
John Kaniarz
16e69cb4c9
Removed SDL_rand_r()
2024-06-19 11:02:02 -07:00
John Kaniarz
86b06f74dc
Updated docs
2024-06-19 11:02:02 -07:00
John Kaniarz
3ee4bff8ac
Upgraded constants after statistical testing.
2024-06-19 11:02:02 -07:00
John Kaniarz
83d21e20df
Added SDL_rand_float and SDL_rand_n to API
2024-06-19 11:02:02 -07:00
John Kaniarz
f4ee59a1a2
Moved SDL_rand auto-initialization out of SDL_rand_r
2024-06-19 11:02:02 -07:00
Sam Lantinga
421326b6da
Fixed controllers not being seen as gamepads after adding a mapping
2024-06-19 08:32:18 -07:00
Hubert Maier
90b7097a90
JANITORIAL: Fix ammount typos ( #10060 )
2024-06-19 07:27:19 -07:00
SDL Wiki Bot
ab98d51b9f
Sync SDL3 wiki -> header
2024-06-19 14:15:46 +00:00
Hubert Maier
81d8fcb5d8
JANITORIAL: Fix judgement typos ( #10059 )
2024-06-19 07:14:58 -07:00
Hubert Maier
3acdb8a90b
JANITORIAL: Fix typos in comments in various files ( #10058 )
2024-06-19 07:13:46 -07:00
Aikawa Yataro
0fe9f5da54
Update qsort implementation
2024-06-19 05:40:01 +03:00
Zack Middleton
02597cdc56
Remove cursors not in SDL2 from migration guide
2024-06-18 12:22:02 -04:00
Zack Middleton
5ecf125456
Update descriptions for window resize cursors
...
The SIZENWSE, SIZENS, etc cursors were renamed.
2024-06-18 12:22:02 -04:00
Sam Lantinga
d7391394d3
Switched the camera format to use framerate ratio instead of interval ratio
...
This is more intuitive for game developers and users.
Fixes https://github.com/libsdl-org/SDL/issues/9896
2024-06-18 07:39:52 -07:00
Sam Lantinga
ea8df46575
We don't support directly rendering to PQ swap chains
...
Normally this would be done by creating a PQ swap chain and a linear SRGB render target and doing blending operations in linear space and then final conversion to PQ HDR, but we're going to short-circuit all of that and just support linear SRGB output directly.
2024-06-17 17:29:33 -07:00
Anonymous Maarten
122c3e6a81
ci: create simpler Gradle testspriteminimal project instead
2024-06-18 00:38:35 +02:00
Anonymous Maarten
1a68d846de
Create a functional CMake project using androidbuild.sh
2024-06-18 00:11:44 +02:00
Sam Lantinga
8ab1ffca8a
Fixed requesting USB permission on Android 14 (thanks @ikhoeyZX!)
...
Fixes https://github.com/libsdl-org/SDL/issues/9831
2024-06-17 15:10:33 -07:00
Sam Lantinga
3a68febedf
Enable HIDAPI controller support on mobile platforms
2024-06-17 15:05:12 -07:00
Sam Lantinga
4236fb2d63
Fixed build warnings with Android debug logging
2024-06-17 15:01:21 -07:00
Sam Lantinga
1cdcb57865
Fixed launching on Android after audio capture -> recording renaming
2024-06-17 14:44:54 -07:00
Sam Lantinga
361cae0874
Pass through the original name used by the Steam Virtual Gamepad
...
Proton uses this on Linux to determine what the XInput slot is for the gamepad. Other applications will get the real controller name and VID/PID by virtue of the code in SDL_steam_virtual_gamepad.c
2024-06-17 12:14:44 -07:00
Miku AuahDark
3373667faa
Android: Use SCREEN_ORIENTATION_FULL_USER instead of SCREEN_ORIENTATION_FULL_SENSOR for resizable window.
...
The former will respect user orientation lock setting while the latter does not.
2024-06-17 07:44:05 -07:00
Sam Lantinga
b6e6c73541
Fixed building the metal renderer with SDL_LEAN_AND_MEAN
...
Fixes https://github.com/libsdl-org/SDL/issues/10038
2024-06-16 22:04:57 -07:00
Sam Lantinga
aeea819494
Added colorspace to SDL_CameraSpec
2024-06-16 17:47:16 -07:00
Yasushi SHOJI
98499d6818
.editorconfig: Remove excess apostrophe at *.cocci
...
Remove the excess apostrophe (') introduced by commit
c4b471bd1314933fd726ef987d96c92c68033f99.
Some editors complain about it.
Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
2024-06-16 09:18:17 -07:00
Sam Lantinga
182a28b343
Fixed documentation typo
2024-06-16 08:01:16 -07:00
SDL Wiki Bot
4e5ed569c3
Sync SDL3 wiki -> header
2024-06-16 14:42:00 +00:00
Sam Lantinga
d1d484ddbe
Added SDL_srand(), SDL_rand(), and SDL_rand_r() (thanks @JKaniarz!)
...
These are simple random functions that should not be used for serious random number generation.
Fixes https://github.com/libsdl-org/SDL/issues/4968
2024-06-16 07:41:00 -07:00
Sam Lantinga
9cb4bb92f6
Fixed parsing SDL_ANALYZER_NORETURN
2024-06-16 07:08:19 -07:00
Sam Lantinga
cf2d8dac30
Reordered conditional for clarity
2024-06-16 06:25:41 -07:00