Sam Lantinga
dd9c521cd1
Fixed java.lang.NullPointerException
...
From @AntTheAlchemist:
This is an interesting one, on a Xiaomi MiTV. Caused by a camera device, full stack:
android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args -> org.libsdl.app.HIDDeviceManager$1.onReceive -> handleUsbDeviceAttached -> connectHIDDeviceUSB -> getSerialNumber -> android.hardware.usb.UsbDevice.getSerialNumber -> android.hardware.usb.IUsbSerialReader$Stub.onTransact -> com.android.server.usb.UsbSerialReader.getSerial -> UsbUserPermissionManager.checkPermission -> hasPermission -> isCameraDevicePresent
(cherry picked from commit 42fc082b5e )
2026-06-02 16:53:02 -07:00
Sam Lantinga
ad9fcae3ad
Handle java.util.ConcurrentModificationException while unregistering sensor listeners
...
We're still seeing this frequently when unregistering PlayStation controller sensors. We don't know what else is modifying the sensor list, but if we end up getting this exception we'll retry after a short sleep.
(cherry picked from commit 75270a4264 )
2026-06-02 16:53:02 -07:00
Sam Lantinga
48045fae0b
Updated to version 3.4.11 for development
2026-05-31 10:48:34 -07:00
Sam Lantinga
8e37db5e79
Updated to version 3.4.10 for release
2026-05-31 10:38:41 -07:00
Sam Lantinga
7b0f45186b
Fixed Steam Controller rumble on Android (thanks @Packetdancer!)
...
(cherry picked from commit 7103ed4167 )
2026-05-28 11:46:21 -07:00
Sam Lantinga
05d140a128
Add support for new Steam Controller input report on mobile devices
...
(cherry picked from commit f6ffa69890 )
2026-05-28 11:46:05 -07:00
Rachel Blackman
69db06bcd2
Handle the Amazon Fire TV's weird Bluetooth behavior
...
(cherry picked from commit 418960bb4e )
2026-05-28 11:44:52 -07:00
Sam Lantinga
7bfac42489
Removed spurious whitespace
...
(cherry picked from commit 815fd4bf45 )
2026-05-28 11:44:45 -07:00
Rachel Blackman
8c12ce1760
Add support for new Steam Controller on Android ( #15044 )
...
(cherry picked from commit 46e553a44c )
2026-05-28 11:41:57 -07:00
Rachel Blackman
a97d8b3848
Ensure we release exclusive USB access to controllers when backgrounded. #15694
...
(cherry picked from commit ac177763aa )
2026-05-26 17:58:09 -07:00
NY00123
597694e4a1
Android: Skip duplicated joystick axes during poll
...
Resolves https://github.com/libsdl-org/SDL/issues/15414
(cherry picked from commit 199d509820 )
2026-05-26 15:55:02 -07:00
Sam Lantinga
b59f09809d
Process repeated joystick key events on Android
...
This prevents them from being interpreted as keyboard keys by the Java code, and if internally we are treating them as keyboard keys, they'll be repeated properly.
Fixes https://github.com/libsdl-org/SDL/issues/15664
(cherry picked from commit 3545bad589 )
2026-05-21 06:53:37 -07:00
Sam Lantinga
fb8bf997e9
android: handle sensor registration synchronized in one place
...
(cherry picked from commit 47c8dcc968 )
2026-05-20 15:55:41 -07:00
Sam Lantinga
85d86dd72c
Fixed deadlock introduced by 7222c04fbf
...
It turns out this change causes a deadlock:
The main UI thread calls synchronized handleMotionEvent() which then calls SDL_LockJoysticks()
The main app thread calls SDL_LockJoysticks() and then synchronized pollInputDevices()
(cherry picked from commit 8c89a076a7 )
2026-05-17 12:22:37 -07:00
Sam Lantinga
da76e438be
Reapply "Change controller sensor state on the main UI thread on Android"
...
This reverts commit 02975994c1 .
Accidentally reverted the wrong commit
(cherry picked from commit b19ecb4032 )
2026-05-17 12:16:07 -07:00
Sam Lantinga
59b38dfe85
Revert "Change controller sensor state on the main UI thread on Android"
...
This reverts commit c362f1341f .
It turns out this change causes a deadlock:
The main UI thread calls synchronized handleMotionEvent() which then calls SDL_LockJoysticks()
The main app thread calls SDL_LockJoysticks() and then synchronized pollInputDevices()
(cherry picked from commit 02975994c1 )
2026-05-17 12:12:20 -07:00
Sam Lantinga
a7f93c5c55
Detect the GameSir Super Nova in Xbox 360 mode
...
(cherry picked from commit a95ce7e734 )
2026-05-15 10:13:53 -07:00
Anthony
e5246aaa6a
Update showFileDialog in proguard-rules.pro
...
to match changes in 439ffd1
(cherry picked from commit bd146867e4 )
2026-05-15 08:59:51 -07:00
Anthony
b87c1101e0
Add joystickSetSensorsEnabled to proguard-rules.pro
...
(cherry picked from commit c94b1435c7 )
2026-05-15 08:44:19 -07:00
Sam Lantinga
ecc33ac29a
Change controller sensor state on the main UI thread on Android
...
Fixes https://github.com/libsdl-org/SDL/issues/15565
(cherry picked from commit c362f1341f )
2026-05-13 08:02:45 -07:00
Sam Lantinga
dfc0e4bb4f
Synchronize controller access on the Java side on Android
...
(cherry picked from commit 7222c04fbf )
2026-05-13 08:02:42 -07:00
Rachel Blackman
717bb2dcef
Correctly support OG Steam Controller when connected via USB on Android ( #15561 )
...
(cherry picked from commit e4a327709d )
2026-05-11 15:23:50 -07:00
Nintorch
3013f975ac
Fix JoyCon mappings on Android
...
(cherry picked from commit 3c1636a958 )
2026-05-04 11:49:45 -07:00
Nintorch
52b6bceedf
Add support for joystick motion sensors on Android
...
(cherry picked from commit c699512adc )
2026-05-03 15:11:59 -07:00
Sam Lantinga
796782fc89
Updated to version 3.4.9 for development
2026-05-01 19:49:54 -07:00
Sam Lantinga
d9d5536704
Updated to version 3.4.8 for release
2026-05-01 17:02:55 -07:00
Sam Lantinga
be6f1b74dc
Updated to version 3.4.7 for development
2026-05-01 06:43:01 -07:00
Sam Lantinga
3aabb7bc53
Updated to version 3.4.6 for release
2026-05-01 06:31:29 -07:00
Sam Lantinga
ee2bebbace
Fixed keyboard being hidden while being shown on Android
...
(cherry picked from commit 47d14491a6 )
2026-04-25 17:11:14 -07:00
Sylvain
3243ae52e7
Android: fix lint warning "unneed cast to Activity"
...
(cherry picked from commit ccf688c921 )
2026-04-10 07:09:02 -07:00
Sam Lantinga
ce3cc80aca
Send SDL_EVENT_SCREEN_KEYBOARD_HIDDEN when the keyboard is hidden on Android
...
(cherry picked from commit fc2f4fcc22 )
2026-04-04 10:08:57 -07:00
Sam Lantinga
b6fd088246
Updated to version 3.4.5 for development
2026-04-03 17:16:53 -07:00
Sam Lantinga
5848e584a1
Updated to version 3.4.4 for release
2026-04-03 16:10:59 -07:00
Tobiasz Laskowski
4128c4e44b
Fix backspace on android with api 30+
...
(cherry picked from commit 01bd8b3780 )
2026-03-03 17:12:28 -08:00
Sam Lantinga
00c85a0b9e
Added support for the Flydigi Vader 5 Pro in Xbox 360 mode
...
(cherry picked from commit 2385dc6297 )
2026-02-24 10:20:29 -08:00
Sam Lantinga
d281a080c6
Updated to version 3.4.3 for development
2026-02-20 15:59:20 -08:00
Sam Lantinga
683181b47c
Updated to version 3.4.2 for release
2026-02-20 15:12:29 -08:00
Sam Lantinga
1edb906aad
Fixed detection of the "Android TV Box" as a TV
...
(cherry picked from commit 1dcc6e2135 )
2026-02-16 12:35:34 -08:00
Sylvain
a7bac75470
Android: prevent SDLActivity and Main Thread to access mJoystick at the
...
same time. same for mHapticHandler
(cherry picked from commit a35bcad0be )
2026-02-10 07:54:19 -08:00
Sam Lantinga
9194d199e7
Added support for the third stylus button on Android
...
(cherry picked from commit cd7fc90c87 )
2026-02-05 14:09:07 -08:00
Kadir
c5dee0feb5
Add ProGuard rule for joystickSetLED method in SDLControllerManager
...
(cherry picked from commit cbcc565ca9 )
2026-01-02 07:31:37 -08:00
Sam Lantinga
d15ecb21be
Updated to version 3.4.1 for development
2025-12-31 18:18:45 -08:00
Sam Lantinga
a962f40bbb
Updated to version 3.4.0 for release
2025-12-31 16:43:54 -08:00
MAJigsaw77
cb04dcd6f8
android: Add RGB LED support for joysticks.
2025-12-29 10:32:02 -08:00
Sam Lantinga
d583fc88be
Updated to version 3.3.7 for development
2025-12-16 09:38:05 -08:00
Sam Lantinga
ef0a604d44
Updated to version 3.3.6 for preview release
2025-12-16 08:54:04 -08:00
Sam Lantinga
7773157fae
Updated to version 3.3.5 for development
2025-12-07 09:30:04 -08:00
Sam Lantinga
f173fd28f0
Updated to version 3.3.4 for preview release
2025-12-06 14:57:22 -08:00
Sam Lantinga
be781fc8f5
Updated to version 3.3.3 for development
2025-10-23 22:41:03 -07:00
Sam Lantinga
b31c4b70b3
Updated version and documentation for 3.3.2 preview release
2025-10-23 15:20:26 -07:00