Manuel Alfayate Corchete
ead3c406a2
[KMS/DRM] Refactor, improve and re-comment async pageflips code.
2021-01-13 20:11:01 +01:00
Sam Lantinga
fbd7c718b6
Don't blink the Xbox 360 LED when setting the player slot, it's probably already been set by a driver
2021-01-13 11:02:07 -08:00
Sam Lantinga
d757ec7f5c
Only select the gamepad interfaces on the Xbox 360 wireless adapter
2021-01-13 11:02:01 -08:00
Sam Lantinga
c94283d404
testgamecontroller: log which controller the event came from
2021-01-13 11:01:54 -08:00
Manuel Alfayate Corchete
aac74db685
[KMS/DRM] Enable async pageflips.
2021-01-13 15:54:26 +01:00
Manuel Alfayate Corchete
9384e59561
[KMS/DRM] Add warning comentary to avoid future experiments with scaling.
2021-01-12 20:15:37 +01:00
Ryan C. Gordon
b99543b682
opengl: More work on making line drawing match software renderer.
2021-01-11 20:40:11 -05:00
Manuel Alfayate Corchete
8442754912
[KMS/DRM] Refactor KMSDR_CreateSurface to group all non-Vulkan stuff in a block.
2021-01-12 00:22:58 +01:00
Manuel Alfayate Corchete
87eb734c4e
[KMS/DRM] Don't ask SDL to scale image when in Vulkan mode.
2021-01-11 23:59:40 +01:00
JibbSmart
e9887045a2
Gyro and Accel sensor support for Switch Pro Controller.
...
Note that axes are changed to match the axes we're using with PlayStation controllers, since users will appreciate consistent behaviour across devices.
2021-01-11 15:36:40 +08:00
Manuel Alfayate Corchete
85e8adf78d
[KMS/DRM] Unused code cleaning.
2021-01-11 22:28:27 +01:00
Manuel Alfayate Corchete
5105ecf8b1
[KMS/DRM] Move surface size info to window driverdata, for coherency.
2021-01-11 21:02:07 +01:00
Manuel Alfayate Corchete
2067a7db8e
[KMS/DRM] Fix fullscreen to windowed transition. Fix aspect ratio correction without using planes.
2021-01-11 20:29:09 +01:00
Sylvain Becker
958e5d5b34
SDL_UpdateNVTexture: fixed pitch/bpp for GLES2 (bug #5430 )
2021-01-11 10:01:24 +01:00
Sylvain Becker
68815b6c06
Fixed bug 5465 - Invalid memcpy inside SDL_GestureDelTouch (Thanks dmikushin and Yuki Okumura)
2021-01-10 22:21:12 +01:00
Sylvain Becker
b94718e0a7
SDL_UpdateNVTexture: for D3D11, same notation as SDL_UpdateTexture (bug #5430 )
2021-01-09 21:22:21 +01:00
Manuel Alfayate Corchete
850d9c8c0d
[KMS/DRM] Cleanup remainings from plane/scaling usage.
2021-01-09 02:25:13 +01:00
Ozkan Sezer
8636bc06de
acinclude/libtool.m4: Apply macos11 patch from libtool bug #44605
...
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44605
https://github.com/macports/macports-ports/blob/master/devel/libtool/files/dynamic_lookup-11.patch
( Also see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44684 )
This also implicitly covers the macos10.10+ support patch from libtool
mainstream which has been in since libtool-v2.4.3, i.e.:
http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=commit;h=e145288b059e14ab7e58fc6a304e82d9dad282a6
2021-01-09 00:11:20 +03:00
Manuel Alfayate Corchete
2aeb317743
[KMS/DRM] Fix vkQuake3 in OpenGL mode.
2021-01-08 22:00:28 +01:00
Sam Lantinga
8746788fea
KMSDRM_LEGACY is no longer legacy
2021-01-08 11:08:23 -08:00
Ozkan Sezer
29888bd69a
fixed permissions of xcode project file
2021-01-08 21:56:00 +03:00
Ozkan Sezer
8d3963421d
regenerated configure
2021-01-08 21:50:02 +03:00
Sam Lantinga
50ea3b77f1
Fixed bug 5080 - SDL_netbsdaudio: Always use the device's preferred frequency
...
Nia Alarie
The NetBSD kernel's audio resampling code is much simpler and lower quality than libsamplerate.
Presumably, if SDL always performs I/O on the audio device in its native frequency, we can avoid resampling audio in the kernel and let SDL do it with libsamplerate instead.
2021-01-08 10:09:37 -08:00
Sam Lantinga
2f72535c62
Fixed joysticks generating SDL mouse events
2021-01-08 09:54:55 -08:00
Sam Lantinga
a5dba7d3ab
Fixed Xbox One Series X share button incorrectly triggering on newer firmware
2021-01-08 09:54:52 -08:00
Manuel Alfayate Corchete
b24494734b
[KMS/DRM] Go back to the LEGACY interface only because using planes breaks compatibility with HW, so no advantage on using ATOMIC.
2021-01-08 18:57:12 +01:00
Manuel Alfayate Corchete
940e1b8dd9
[KMS/DRM] Small readability changes.
2021-01-08 16:33:50 +01:00
Manuel Alfayate Corchete
e5bf1850f5
[KMS/DRM] Fix cpmpilation warnings. Thanks to Ozkan Sezer for pointing this out!
2021-01-08 15:39:05 +01:00
Manuel Alfayate Corchete
cef1bd0639
[KMS/DRM] Prevent creating another default cursor everytime a window is created. Other fixes and cleanups.
2021-01-08 13:14:42 +01:00
Jordan Christiansen
7032539785
Disabled Bluetooth if BLE is not supported
...
BluetoothManager is supported for Android API 18+. On older versions, skip
Bluetooth instead of crashing.
2021-01-07 19:33:12 -06:00
Cameron Gutman
0f0946702d
Use Clang/GCC builtins for SDL byteswapping functions
...
__builtin_bswap32/64 were introduced in GCC 4.3. __builtin_bswap16 was
not available on x86 until GCC 4.8 due to a bug.
__builtin_bswap32/64 were introduced in Clang 2.6. __builtin_bswap16
was introduced in Clang 3.2.
2021-01-04 19:51:56 -06:00
Sam Lantinga
e778881ada
Fixed bug 5449 - SDL_DROPFILE update mouse location of drop in Cocoa
...
Dominik Reichardt
Exult (http://exult.info ) has an editor app that uses GTK+2. Up to now we were using X's drag'n'drop to allow dropping of assets from the editor onto Exult.
There is now an experimental branch that makes use of SDL_DROPFILE. That works under X, dropping in Exult's SDL2 window puts the asset right at the spot you dropped at.
On macOS with native Exult and Quartz GTK+2 this doesn't work, the location of the drop is where the mouse was last tracked before you left the window (usually one of the edges, unless you tabbed out).
All we tried out pointed to the fact that the location update needs to be done by the dropfile event in SDL2, not by our own (which always only worked after the Exult window getting focus).
This patch adds this to SDL_cocoawindow.m and it works perfectly, passing the correct coordinates to our code (SDL_GetMouseState()).
2021-01-07 11:49:28 -08:00
Sam Lantinga
c8a64ad90c
Fixed building when SDL_LIBUSB_DYNAMIC is defined
2021-01-07 10:23:55 -08:00
Manuel Alfayate Corchete
d079130c24
[KMS/DRM] Don't use primary plane for scaling because that's unsupported on most LEGACY-only HW.
2021-01-07 18:44:34 +01:00
Ozkan Sezer
e23666f63e
update config.guess and config.sub from mainstream.
2021-01-07 17:40:00 +03:00
Manuel Alfayate Corchete
e168d1138c
[KMS/DRM] Correct drmModeSetCursor() dimensions.
2021-01-07 14:40:24 +01:00
Manuel Alfayate Corchete
335d78ff86
[KMS/DRM] Add the missing files for Vulkan support to the KMSDRM_LEGACY backend, had forgotted to do -hg add-.
2021-01-07 11:30:33 +01:00
Manuel Alfayate Corchete
661bacfe27
[KMS/DRM] Add Vulkan suport to the KMSDRM_LEGACY backend.Minor text spacing tweaks for better readability. Comment out unused function.
2021-01-07 00:47:21 +01:00
Ozkan Sezer
dfb0afe36a
fix build after commit 5730b2005da1
2021-01-07 00:41:32 +03:00
Manuel Alfayate Corchete
67e0b1dd4e
[KMS/DRM] Rewrite KMSDRM_LEGACY backend to accomodate Vulkan compatibility. Fix several bugs on that backend.
2021-01-06 22:15:26 +01:00
Sylvain Becker
57a5c45372
Fix D3D11 UpdateTextureNV in non fullscreen (bug #5430 )
2021-01-05 22:06:51 +01:00
Sylvain Becker
fc61ecb25c
Fix software UpdateNVTexture non fullscreen (bug #5430 )
2021-01-05 21:54:03 +01:00
Sylvain Becker
204ef3b509
Fix D3D11 UpdateNVTexture (bug #5430 )
2021-01-05 20:38:31 +01:00
Sylvain Becker
c0df40e003
Add more SDL_HAVE_YUV defines
2021-01-05 17:39:48 +01:00
Ozkan Sezer
dc0e5de974
Update config.guess and config.sub from mainstream.
...
Recognizes riscv32be and riscv64be.
2021-01-05 17:10:02 +03:00
Ozkan Sezer
76295cecf3
video/windows: ANSI/UNICODE updates (cf. bug 5435):
...
- explicitly use UNICODE versions of DrawText, EnumDisplaySettings,
EnumDisplayDevices, and CreateDC: the underlying structures have
WCHAR strings.
- change WIN_UpdateDisplayMode and WIN_GetDisplayMode() to accept
LPCWSTR instead of LPCTSTR for the same reason.
- change WIN_StringToUTF8 and WIN_UTF8ToString to the explicit 'W'
versions where appropriate.
2021-01-05 15:50:10 +03:00
Ozkan Sezer
265a1cc97a
use WIN_StringToUTF8W instead of WIN_StringToUTF8 where needed ( #2 )
...
cf. bug #5435 .
- SDL_wasapi_win32.c (GetWasapiDeviceName): pwszVal is WCHAR*
- windows/SDL_sysfilesystem.c (SDL_GetBasePath, SDL_GetPrefPath)
- windows/SDL_sysurl.c (SDL_SYS_OpenURL): wurl is WCHAR*
- SDL_windowssensor.c (ConnectSensor): bstr_name is WCHAR*
- windows/SDL_systhread.c (SDL_SYS_SetupThread): strw is WCHAR*
2021-01-05 15:50:02 +03:00
Ozkan Sezer
516042b4d6
ran gendynapi.pl after SDL_UpdateNVTexture addition
2021-01-05 15:15:50 +03:00
Ozkan Sezer
31751bdcce
wmmsg.h: constified wmtab
2021-01-05 15:15:37 +03:00
Sylvain Becker
b032504162
Fix unused variable warning on METAL (see bug #5430 )
2021-01-05 12:36:34 +01:00