Sam Lantinga
68544be44b
Added support for the Nintendo Online controllers
2022-06-10 11:31:59 -07:00
Ryan C. Gordon
b75cd2b36d
x11: Force window back to expected size after SDL_SetWindowBordered.
...
This helps if the window manager decided to let it fill the space that
an existing border was using before its removal.
Fixes #5718 .
2022-06-10 14:13:07 -04:00
Ozkan Sezer
51db775442
updated windows watcom exports file after last commit.
2022-06-10 06:23:20 +03:00
Sam Lantinga
9202df0472
Implemented SDL_GameControllerGetFirmwareVersion() for HIDAPI PS5 controllers
2022-06-09 18:11:34 -07:00
Guldoman
e5a3acd6bd
ime: fcitx: Retrieve cursor position and selection
...
Also, if `SDL_HINT_IME_SUPPORT_EXTENDED_TEXT` is enabled, make use of
`SDL_TEXTEDITING_EXT` by sending the full preedit string.
2022-06-09 15:18:50 -07:00
Guldoman
dd7bed9ebc
ime: ibus: Retrieve cursor position and selection
...
Also, if `SDL_HINT_IME_SUPPORT_EXTENDED_TEXT` is enabled, make use of
`SDL_TEXTEDITING_EXT` by sending the full preedit string.
2022-06-09 15:18:50 -07:00
Guldoman
d11702ce29
ime: wayland: Make use of `SDL_TEXTEDITING_EXT`
...
Because we were sending multiple chunks of preedit strings,
`SDL_SendEditingText` was using the old `SDL_TEXTEDITING` event only.
Now if `SDL_HINT_IME_SUPPORT_EXTENDED_TEXT` is enabled, we send the full
string and correctly set the cursor position and selection size.
2022-06-09 15:18:50 -07:00
Guldoman
74bcc5a0a3
stdlib: Add `SDL_utf8strnlen`
2022-06-09 15:18:50 -07:00
Sam Lantinga
c7f4103807
Special case for k_eControllerType_XInputSwitchController in the raw input path
2022-06-09 13:47:29 -07:00
Sam Lantinga
e6cb082232
Fixed the default mapping on Windows for the HORI Fighting Commander
2022-06-09 13:20:38 -07:00
Cameron Cawley
0a93ac1294
Work around the lack of clock() on PS Vita
2022-06-09 11:07:06 -07:00
Cameron Cawley
25367efcba
Add missing library needed for locale functions on PS Vita
2022-06-09 11:07:06 -07:00
chalonverse
6f69bbc541
D3D11: Fix SDL_TEXTUREACCESS_TARGET not working if SDL_HAVE_YUV was 0
...
Added a couple of missing SDL_zeros in CreateTexture
2022-06-08 12:51:09 -07:00
chalonverse
8303c5d0a3
Added missing SDL_zero for renderTargetViewDesc
2022-06-08 12:51:09 -07:00
Ozkan Sezer
6bd49fc00c
revert mode changes from commit d58d637ac
2022-06-08 21:58:10 +03:00
Sam Lantinga
d58d637ac6
Added support for the Qanba Obsidian Arcade Joystick on Linux
2022-06-08 11:07:36 -07:00
Ozkan Sezer
526f417587
updated configury to silence ac2.7x warnings with minor rearrangement.
2022-06-08 20:51:04 +03:00
Sam Lantinga
51d6d60f11
Updated to autoconf 2.71
2022-06-08 10:14:36 -07:00
Charlie Birks
e201f338d7
ci: enable CMake test for Emscripten
2022-06-08 08:09:46 -07:00
Charlie Birks
0fcfaf9e94
emscripten: use MAIN_THREAD_EM_ASM for the fb/cursor proxying
...
This is how everything else was handled and fixes undefined symbol
errors in non-threads builds.
2022-06-08 08:09:46 -07:00
chalonverse
b9c2ad8395
Added additional check for HAVE_D3D12_H and missing SDL_VIDEO_RENDER_D3D12 in SDL_config.h.cmake
2022-06-07 22:36:06 -07:00
Anonymous Maarten
298ad937c0
cmake: wrap SDL_STATIC_PIC in double quotes (aka never trust user input)
...
Suggested by @Wohlstand
2022-06-07 18:44:47 -07:00
Anonymous Maarten
ad272ac690
Set POSITION_INDEPENDENT_CODE property on SDL2 for CMake 3.0
2022-06-07 18:44:47 -07:00
chalonverse
e8d89ce28f
< should be <=
2022-06-07 17:07:33 -07:00
chalonverse
7a335df9cf
Updated CMakeLists.txt and configure.asc/script so that it checks for the required Windows SDK version before it enables the d3d12 renderer. Also fixed reported warnings in some builds.
2022-06-07 17:07:33 -07:00
Anonymous Maarten
5abd676917
Allow empty default values to the dep_option macro
2022-06-07 09:17:44 -07:00
Sylvain
2cc2260435
Fixed bug #5768 - SDL_RenderGeometry's software backend failed to render when texture coordinates are reversed
...
handle flip vertical/horizontal when reconstructing rects from triangles
2022-06-07 16:30:01 +02:00
Sam Lantinga
168b97ca32
Updated Xcode project with SDL_guid.c and controller_type.c
2022-06-07 00:33:59 -07:00
Ozkan Sezer
7e71d08ab2
regenerated configure script.
2022-06-07 04:02:50 +03:00
SDL Wiki Bot
ef4e0e921a
Sync wiki -> header
2022-06-07 00:44:04 +00:00
chalonverse
4082821822
DirectX 12 Renderer ( #5761 )
...
* DirectX 12 Renderer (27 squashed commits)
* Add missing SDL_hidapi.h of merge of SDL.vcxproj.filters
* Fixed OpenWatcom build failure
* Dynapi fix
Co-authored-by: Ryan C. Gordon <icculus@icculus.org>
2022-06-06 17:42:30 -07:00
Ozkan Sezer
63e12cf601
SDL_windows_main.c: replace CopyMemory() with SDL_memcpy()
2022-06-06 22:55:56 +03:00
Ryan C. Gordon
ec0204d243
x11: Don't use GetXftDPI() when XRandR can tell us the DPI per-output.
...
Fixes #5764 .
2022-06-06 14:39:58 -04:00
Ozkan Sezer
61115aebd3
update dynapi after the loongarch support patch
2022-06-06 19:29:56 +03:00
SDL Wiki Bot
7cd165e2d9
Sync wiki -> header
2022-06-06 15:51:04 +00:00
yuanhecai
50d8642fa3
Add optimiztion function with LSX in LoongArch
...
1. yuv420_rgb24_lsx
1. yuv420_rgba_lsx
2. yuv420_bgra_lsx
3. yuv420_argb_lsx
4. yuv420_abgr_lsx
2022-06-06 08:49:09 -07:00
yuanhecai
17f63e53f8
Add loongarch support
...
LSX and LASX are enabled by default if compiler supports them.
2022-06-06 08:49:09 -07:00
Ryan C. Gordon
9703f23663
SDL_SetHintWithPriority: actually, this test is good.
...
Otherwise, we end up calling the callback if both the old and new value
are NULL.
This reverts commit 5f25a6ea78
(and also
trims some whitespace).
2022-06-06 10:55:29 -04:00
Sam Lantinga
30cf26e089
Show the firmware version in testgamecontroller
2022-06-06 06:59:54 -07:00
Ryan C. Gordon
5f25a6ea78
Revert "SDL_SetHintWithPriority: better test if hint value has changed."
...
Actually, the original test was fine, disregard.
This reverts commit c391bdc160
.
2022-06-06 09:36:20 -04:00
Ryan C. Gordon
c391bdc160
SDL_SetHintWithPriority: better test if hint value has changed.
2022-06-06 09:31:35 -04:00
Ryan C. Gordon
55a07d91fa
SDL_SetHintWithPriority: Allow setting NULL hints.
...
Fixes #5120 .
2022-06-06 09:30:43 -04:00
Ryan C. Gordon
a236bf4f25
x11: Hook up display hotplug notifications.
...
Obviously this needs XRandR support.
Fixes #4977 .
2022-06-06 02:13:37 -04:00
Ryan C. Gordon
6b4bd5a759
test_harness: Report if zero tests to run.
...
Fixes static analysis complain about a potential malloc(0) call.
2022-06-05 09:34:54 -04:00
Christoph Reichenbach
46624b4e1d
Removed two distracting gcc-11 warnings
2022-06-05 14:11:10 +03:00
SDL Wiki Bot
3807e95029
Sync wiki -> header
2022-06-05 00:24:04 +00:00
Christoph Reichenbach
3a20274ddf
Refactoring: move GUID operations out of Joystick
...
- SDL_JoystickGUID -> SDL_GUID (though we retain a type alias)
- Operations for GUID <-> String ops are now in
src/SDL_guid.c and include/SDL_guid.h
- The corresponding Joystick operations delegate to SDL_guid.c
- Added test/testguid.c
2022-06-04 17:22:13 -07:00
Christoph Reichenbach
4e07d4722d
Build warning fixes for gcc-11.3
2022-06-04 17:41:00 +03:00
Ozkan Sezer
b359282a5c
regenerated configure script
2022-06-04 12:58:00 +03:00
Anonymous Maarten
20c76599f9
Fix MinGW SDK redist: sdl2-config.cmake needs to set SDL2_FOUND
2022-06-03 21:05:55 -07:00