Sam Lantinga
f97a29f6e1
Use the real device VID/PID when seeing the Steam virtual controller
2022-02-11 22:10:33 -08:00
Sylvain
85e6500065
X11 Segmentation fault with multiple windows and renderers (see #5256 )
2022-02-11 11:08:08 +01:00
Wouter Wijsman
4cb6181808
Do not build loadso test eboot for PSP
2022-02-10 19:01:15 +01:00
Sylvain
a75041e8dd
Fixed bug #2140 : basic support to convert 16 colors palette PIXELFORMAT_INDEX4, to allow conversion to SDL_Texture
2022-02-10 13:44:59 +01:00
Wouter Wijsman
abc8198a1f
Render all sides when drawing rect on PSP
2022-02-09 09:36:19 -08:00
Sylvain
5b41844c75
Fixed bug #5322 - register virtual input devices as SDL_Touch device, fix compilation
2022-02-09 09:50:41 +01:00
Sylvain
3a9bbf604e
Fixed bug #5322 - register virtual input devices as SDL_Touch device because
...
they can send SOURCE_TOUCHSCREEN events even if getSources() doesn't declare them.
2022-02-09 09:37:36 +01:00
Sylvain
59f1e2875a
Android: add debug function to display class/sources
2022-02-08 21:50:19 +01:00
Frank Praznik
228db35287
audio: pipewire: Tidy up formatting
2022-02-08 14:33:34 -05:00
Frank Praznik
9da9e85cba
audio: pipewire: Reset all hotplug values and pointers on shutdown
...
Ensure that all hotplug variables and pointers are reset to NULL or their original value when shutting down.
2022-02-08 14:33:34 -05:00
Frank Praznik
5b36a527ed
audio: pipewire: Remove redundant locks
...
The io_list_check_add() and io_list_remove() functions are only ever called from within the Pipewire thread loop, so the locks are redundant. io_list_sort() is called from within a lock in the device detection function, so those additional locks are redundant as well.
2022-02-08 14:33:34 -05:00
Frank Praznik
48b4d1c412
audio: pipewire: Convert atomic hotplug conditional variables to SDL_bool
...
The hotplug loop condition variables are always guarded by the loop mutex while the loop is running, so they don't need to be atomic.
2022-02-08 14:33:34 -05:00
Ozkan Sezer
67f12ede3b
move bug #5333 fix to headers
2022-02-08 21:32:50 +03:00
Wouter Wijsman
54304b971d
Fix rotation direction and center point on PSP
2022-02-08 09:47:10 -08:00
Wouter Wijsman
2b572dff88
Make RenderCopyEx rotate around center
...
This still isn't perfect. The rotation is the wrong way around and the
images are upside down.
2022-02-08 09:47:10 -08:00
Sylvain
2df2da11f6
Android: handleMotionEvent() is checking for SOURCE_JOYSTICK. So don't handle DPAD GAMEPAD (see #5322 , #2718 )
2022-02-08 17:51:40 +01:00
Sylvain
1fc5dba3d5
Android: test for SOURCE_KEYBOARD / SOURCE_MOUSE. Don't compare to 0, since there are several bits (see #5322 , #2718 )
2022-02-08 17:41:17 +01:00
Ozkan Sezer
7935cfacc5
SDL_mfijoystick.m: use __typeof instead of typeof.
...
Fixes https://github.com/libsdl-org/SDL/issues/5319
2022-02-08 18:55:10 +03:00
Ozkan Sezer
9b817248c5
SDL_spinlock.c: define HAVE_GCC_ATOMICS for windows/clang builds,
...
... if not already defined.
Fixes https://github.com/libsdl-org/SDL/issues/5333
diff --git a/src/atomic/SDL_spinlock.c b/src/atomic/SDL_spinlock.c
index bdd347e..4f10741 100644
--- a/src/atomic/SDL_spinlock.c
+++ b/src/atomic/SDL_spinlock.c
@@ -28,6 +28,12 @@
#include "SDL_mutex.h"
#include "SDL_timer.h"
+#if defined(__WIN32__) && defined(__clang__)
+# ifndef HAVE_GCC_ATOMICS
+# define HAVE_GCC_ATOMICS 1
+# endif
+#endif
+
#if !defined(HAVE_GCC_ATOMICS) && defined(__SOLARIS__)
#include <atomic.h>
#endif
2022-02-08 18:50:02 +03:00
Sylvain
f185711203
Fixed bug #5310 : Android, Undefined reference to AAssetManager_fromJava
2022-02-08 16:18:01 +01:00
Sylvain
68dd84f1de
Android: TouchDevice -1 is reserved for SDL synthetic devce (See #5322 )
2022-02-08 11:42:24 +01:00
Sylvain
94e5c3f30e
testgesture: display device name with SDL_GetTouchName()
2022-02-08 11:40:39 +01:00
SDL Wiki Bot
580d231822
Sync wiki -> header
2022-02-08 10:37:04 +00:00
Sylvain
e7e44df039
Dynapi: add SDL_GetTouchName() entry
2022-02-08 11:34:41 +01:00
Sylvain
34d4f5b14e
Fixed bug #2032 : add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!)
2022-02-08 11:32:20 +01:00
Ivan Epifanov
8ce003a42c
Vita: credit cpasjuste
2022-02-07 15:36:42 -08:00
Sylvain
14bc3bf4ec
Android: fix typo to register TOUCHSCREEN device (see #5322 , #2718 )
2022-02-07 22:20:05 +01:00
Frank Praznik
53091e36a3
audio: pipewire: Remove the hard upper bound on rates and buffer sizes
...
Remove the hard upper limit of 8192 samples and instead use the buffer sizes provided by Pipewire to determine the size of the intermediate input buffer and whether double buffering is required for output streams. This allows for higher latency streams to potentially avoid double-buffering in the output case, and we can guarantee that the intermediate input buffer will always be large enough to handle whatever Pipewire may deliver.
As the buffer size calculations occur in a callback in the Pipewire processing thread itself, the stream readiness check has been modified to wait on two distinct flags set when the buffers have been configured and when the stream is ready and running.
2022-02-07 15:11:31 -05:00
Frank Praznik
66866249a2
audio: pipewire: Condition variable doesn't need to be atomic
...
The condition variable is guarded by a mutex, so no need for it to be atomic.
2022-02-07 15:11:31 -05:00
Luke Street
0cb39ed468
cmake: Fix SDL_LIBUSB_DYNAMIC soname
2022-02-07 14:22:31 -05:00
Sylvain
b0dd4c7d36
SDL_Render OpenGL: do batching like in the GLES2 backend (with no VBO)
2022-02-07 14:02:20 -05:00
Sylvain
90f0d2ce49
Revert OpenGL point drawing performance, do to proper batching
2022-02-07 14:02:20 -05:00
waddlesplash
423feac69b
haiku: Actually remove BDirectWindow and fix OpenGL handling.
...
This provides the other half of 05c72b113c830392f8b08532317ef07972b29a2e.
2022-02-06 19:19:21 -05:00
Ozkan Sezer
9403543671
cmake: enable_language(OBJC) only for APPLE
2022-02-05 18:50:00 +03:00
Ozkan Sezer
3c9ac4489e
cmake: enable_language(OBJC) to fix check_objc_source_compiles().
2022-02-05 18:45:50 +03:00
Ozkan Sezer
686a0f3456
cmake: include CheckOBJCSourceCompiles for cmake >= 3.16
...
c.f. bugs #5011 and #3912
2022-02-05 18:28:24 +03:00
pionere
6d5592a201
minor cleanup of SDL_CreateRenderer
2022-02-05 10:05:25 -05:00
Ozkan Sezer
e8c48981f9
pthread/SDL_systhread.c: always include errno.h
...
fixes build for several targets after commit 87b02d3
for bug #5283 .
2022-02-05 08:56:56 +03:00
Sam Lantinga
5c4fff7f63
Don't fail to get battery status if the upower refresh call fails
2022-02-04 14:02:44 -08:00
Ozkan Sezer
c8cee0b8ca
OS2_HasClipboardText: store the boolean result before closing clipboard.
...
just in case..
2022-02-04 23:28:56 +03:00
Ozkan Sezer
b5614d0c6e
cmake: fix UWP joystick.
...
from: https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/0005-Fix-uwp-joystick.patch
2022-02-04 20:05:14 +03:00
Ozkan Sezer
c93e552068
minor update to winrt/SDL_sysurl.cpp
...
from: https://github.com/microsoft/vcpkg/blob/master/ports/sdl2/0006-Update-SDL_sysurl.cpp.patch
2022-02-04 20:03:50 +03:00
Ozkan Sezer
050a5e1a15
removed unused SDL_config_wiz.h
2022-02-04 20:02:20 +03:00
Ozkan Sezer
c459eceee1
removed unused Makefile.wiz
2022-02-04 19:50:50 +03:00
Ozkan Sezer
3b9e6c1cec
SDL_os2video.c: fixed HasClipboardText() semantics.
...
Empty string in clipboard is expected to give FALSE by SDL_HasClipboardText.
Noticed in a commit by josch1710 in bitwiseworks' os/2 fork.
2022-02-04 19:50:20 +03:00
Joshua Ashton
86b7a0642f
Add additional VID/PIDs for Anne Pro II
...
This thing changes its VID/PID on firmware revisions...
2022-02-04 08:45:19 -08:00
Sam Lantinga
dd69c28d6f
Added a mapping for the Xbox Series X controller, firmware version 5.11.3118.0, connected to Linux via Bluetooth
2022-02-03 18:01:34 -08:00
Temdog007
b59e75c259
Handle menu button press from controller
2022-02-02 21:21:44 -08:00
Ravbug
2005dd9595
UWP build ( #5299 )
...
* Add UWP-x64 action
* Fix formatting
* Fix missing -
2022-02-02 14:06:52 -08:00
pionere
2cfc83eab7
sync D3D_RenderReadPixels with D3D11_RenderReadPixels
...
- use the result of SDL_ConvertPixels to propagate error
- get rid of the verbose error message of D3D11_RenderReadPixels in case SDL_ConvertPixels failed
2022-02-02 14:56:38 -05:00