Ozkan Sezer
7567c4cb00
revert executable permissions from Android.mk
2022-09-30 21:51:11 +03:00
Sam Lantinga
82e341bc9e
Android: use real editable text and mimic the edit operations to generate key events
...
This fixes issues where the IME and the output would get out of sync
2022-09-30 11:40:29 -07:00
Ryan C. Gordon
1b895912a2
docs: Note the lowest supported Emscripten version.
...
Reference Issue #6304 .
2022-09-30 14:23:54 -04:00
Sam Clegg
cfab203f91
emscripten: Remove use of EM_ASM from SDL_timer code.
...
Instead use the native emscripten timer API.
See https://github.com/emscripten-core/emscripten/issues/17941
2022-09-30 13:41:41 -04:00
Ryan C. Gordon
a97d2e6958
GitHub Actions: bump Emscripten version used to build to 2.0.31.
...
Reference PR #6304 .
2022-09-30 10:47:13 -04:00
Ozkan Sezer
1b52145bad
Makefile.w32: no need for the description field, we have a *.res already
2022-09-29 20:51:24 +03:00
Ethan Lee
0d6c4ff622
testaudioinfo: Initialize deviceName unconditionally
2022-09-29 11:36:07 -04:00
Ethan Lee
1ea1a90edb
testaudioinfo: Also test SDL_GetAudioDeviceSpec
2022-09-29 10:41:40 -04:00
Jarod Hillman
40893821f2
coreaudio: Add support for SDL_GetDefaultAudioInfo ( #6277 )
...
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com>
Co-authored-by: Ozkan Sezer <sezeroz@gmail.com>
2022-09-29 10:33:07 -04:00
zll
69bbe4ce7d
Fix memory leak in VITA_GXM_CreateRenderer
2022-09-29 14:32:56 +03:00
Frank Praznik
e17f0c283c
wayland: Call the Wayland hide/show functions directly when changing decoration modes
...
Calling SDL_HideWindow() to destroy the window is a NOP if the SDL_WINDOW_SHOWN flag was never set. Bypass it and call the Wayland-specific function directly to ensure that the window is always destroyed before switching from server-side to client-side decorations, even if it hasn't been shown yet.
Likewise, call Wayland_ShowWindow() directly when the window isn't explicitly hidden to ensure that it is always recreated since the SDL_WINDOW_SHOWN flag won't be cleared, which, when set, renders SDL_ShowWindow() a NOP.
2022-09-28 13:21:10 -07:00
Ozkan Sezer
8bcbdc706c
hidapi, libusb: backport read_thread indefinite loop fix from mainstream
...
Mainstream commit:
5ce9051e2f
2022-09-28 08:26:08 -07:00
Ludovico de Nittis
379d478055
dbus: guard against uninitialized D-Bus
...
Before calling any D-Bus related methods we should first ensure that
they
were correctly loaded.
In the event where `LoadDBUSLibrary()` was not able to load the D-Bus
library, we should just return early, signalling with SDL_FALSE that we
were unable to inhibit the Screensaver.
Helps: https://github.com/ValveSoftware/steam-for-linux/issues/8815
Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
2022-09-28 10:29:55 -04:00
Eric Curtin
57b5c9107e
kmsdrm: only negative devindex's are not allowed
...
ad874536
removed an unnecessary limit as we *can* have a devindex
greater than 99, this error message does not reflect the support for
values greater than 99.
2022-09-28 10:29:02 -04:00
Ryan C. Gordon
508cc225a7
Update README.md
2022-09-28 10:17:39 -04:00
Ryan C. Gordon
f648c000bd
build: Fixed some references to renamed test-versioning.sh
2022-09-28 09:37:21 -04:00
Ryan C. Gordon
f6565c329b
coreaudio: Remove redundant variable.
2022-09-28 09:27:45 -04:00
Ryan C. Gordon
411582c710
coreaudio: Don't crash on shutdown in a race condition.
...
Fixed #6159 .
2022-09-28 09:22:17 -04:00
Ryan C. Gordon
d843d61cc1
Moved test/versioning.sh to build-scripts/test-versioning.sh
...
Reference Issue #6171 .
2022-09-28 09:09:43 -04:00
Sam Lantinga
4471d22eb6
Updated iOS demos Xcode project
2022-09-28 01:10:23 -07:00
Sam Lantinga
13c443f224
Removed obsolete search path setting
2022-09-28 01:10:10 -07:00
Sam Lantinga
26997bc153
Removed unused framework entries from the Xcode project
2022-09-28 00:52:39 -07:00
Sam Lantinga
229315b014
Updated SDL Xcode test project to build for iOS and tvOS
...
Tested with Xcode 14.0.1
2022-09-28 00:06:06 -07:00
Sam Lantinga
bb74af1e11
Allow including SDL_uikit_main.c in Apple multi-platform builds
...
This file just won't do anything on macOS
2022-09-28 00:01:54 -07:00
Sam Lantinga
3a6b4835f8
Updated macOS Xcode test programs
2022-09-27 22:28:50 -07:00
Ryan C. Gordon
8e14647759
build-scripts: Added update-version.sh
...
Fixes #6171 .
2022-09-27 22:04:07 -04:00
Ryan C. Gordon
a2c5757356
video: check for "software" with SDL_HINT_FRAMEBUFFER_ACCELERATION.
...
We check for this value elsewhere but not in SDL_CreateWindowFramebuffer.
2022-09-27 22:04:06 -04:00
Anonymous Maarten
d76f0cc753
Android.mk: Build android SDL2.so with `-Wl,--no-undefined`
2022-09-27 13:13:52 -07:00
Anonymous Maarten
70214ed3ed
cmake: append to CMAKE_MODULE_PATH instead of overwriting
2022-09-27 13:13:52 -07:00
Anonymous Maarten
a193a03d81
cmake: add -Wno-declaration-after-statement to cpu-features.c alone
2022-09-27 13:13:52 -07:00
Sam Lantinga
7becbd7d42
Add joystick locking for controller notifications on iOS/tvOS
...
Fixes https://github.com/libsdl-org/SDL/issues/6288
2022-09-27 12:58:16 -07:00
Sam Lantinga
18eb319adc
Added sensor timestamp for Nintendo Switch controllers
2022-09-27 12:34:03 -07:00
Sam Lantinga
5e3a40309e
Added sensor timestamp for Steam Controllers
2022-09-27 11:36:01 -07:00
Ryan C. Gordon
57b20e7b9e
cocoa: Fix new windows setting SDL_WINDOW_BORDERLESS flag incorrectly.
...
Fixes #6172 .
2022-09-27 14:23:42 -04:00
Ozkan Sezer
77c7836c26
fix vita build failure after commit 2c518747b
2022-09-27 20:21:24 +03:00
SDL Wiki Bot
36e7670143
Sync SDL wiki -> header
2022-09-27 16:57:17 +00:00
Sam Lantinga
2c518747b9
Added microsecond timestamp to sensor values for PS4 and PS5 controllers using the HIDAPI driver
2022-09-27 09:56:49 -07:00
Sylvain
d71df6448b
Fixed bug #6287 - SDL_FillRect failed for SDL_Surface with BitsPerPixel == 4
2022-09-27 10:21:15 +02:00
Sam Lantinga
1e1be0b954
Updated logic to match between PS4/PS5/Switch controllers
2022-09-26 23:00:58 -07:00
Sam Lantinga
8c40a6b0c7
Drop PS5 Bluetooth reports that fail CRC check
2022-09-26 22:47:21 -07:00
Sam Lantinga
db075ff3ba
Removed unused variable
2022-09-26 22:45:01 -07:00
Sam Lantinga
2ccdd0667a
Handle DS4 dongle controller connection and disconnection
...
We also drop Bluetooth packets that fail the CRC check, as recommended by Sony
2022-09-26 22:34:33 -07:00
Anonymous Maarten
653e433c08
cmake: only add -Wl,--undefined=WinMain when building an executable
2022-09-27 07:00:02 +03:00
Sam Lantinga
18046b9aa3
Fixed crash with a NULL serial number
2022-09-26 20:53:50 -07:00
Sam Lantinga
67fa6a935f
Don't wait a long time for zombie Bluetooth controllers
...
If a Nintendo Switch Pro controller is turned off, it will leave the controller connected in Windows, but not responding to reports. Don't wait a really long time trying to get information from a controller in this state.
2022-09-26 20:49:26 -07:00
Sam Lantinga
67db8a9103
Wait for input before reconnecting a Bluetooth device
...
On Windows, the Bluetooth device can remain in a connected state if the controller just shut down. It won't return any errors, but it also won't generate any input reports in this state, so wait until we know for sure that the Bluetooth controller is sending data before letting the application know it's available.
2022-09-26 20:43:46 -07:00
Cameron Gutman
71fb91f7e4
evdev: Fix build with libudev and joystick subsystem disabled
2022-09-26 21:38:09 -05:00
Sam Lantinga
2cc9176137
Removed debug logging
2022-09-26 18:52:26 -07:00
Sam Lantinga
2c98c8af01
Use better default values for Switch controller calibration
2022-09-26 18:39:47 -07:00
Sam Lantinga
a205c5e26c
Use separate extents for simple and advanced reports
2022-09-26 18:39:47 -07:00