-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL2 and SDL example from action not detecting controller in Android 14 #9831
Comments
@AntTheAlchemist, are you seeing this as well? |
I don't have a physical Android 14 device (and emulators don't have USB), but if there was an issue with SDL on a specific version of Android, it would reflect on the feedback on my Game Controller Tester app which is live on Google Play. No one has reported any issues and the ratings don't show a specific version problem (4.8 stars on Android 14, 4.3 Android 13, 4.8 Android 12...). It may be a problem with the test app? Rendering issue? |
btw other emulator like vita3k have same problem (and it using SDL2) i did tried merge from example SDL android HIDManager, but still same result |
intent issue maybe, because i did test your app and it firing USB intent |
This is the manifest used for the tests built on actions: https://github.com/libsdl-org/SDL/blob/main/test/android/cmake/AndroidManifest.xml.cmake |
@ikhoeyZX, the pop-up that asks "Allow ... to access Wireless Controller" is caused by the I think it might be a setting in the project. |
still same result |
@ikhoeyZX Yes, them manifest entries won't be the problem. I don't understand how you're using USB on an emulator though? Nothing I plug into my PC is transferred over to the emulator... |
not in android emulator (because my pc cant run android studio) |
Please note that prompt isn't the reason why my app is working on Android 14. That prompt is only needed for Steam controllers. So, my SDL3 app can see game controllers on Android 14, but other apps can't, but they can on other Android versions? Including SDL3's test app? Which version of SDL are you using to test? I don't think I'm doing anything special to get this working. The test app's manifest looks fine. It looks like it's something else in the project setting, but there are too many options to guess. If you have the time, you can try to get your project to match my settings as closely as possible (I'll just cut-paste some relevant settings from my project):
|
The manifest of the action apks contains the same items, so that shouldn't be it. However, they have a target sdk version of 31, but don't set a minimum sdk version. Line 703 in c6cc719
@ikhoeyZX |
like this?
in build.gradle ? |
In case hints might affect it, here are the relevant hints I'm using:
|
@ikhoeyZX, this is my build.gradle, but yours may look different:
|
okay, i'm gonna test compile with minsdk 16 (before was 28) |
You may struggle to get it to compile with min 16 if there are dependencies that have a higher minimum. I've had to limit myself to older versions of some, to retain min 16:
The minimumSdkVersion is not important - it shouldn't affect the problem, I should think. |
nothing works with all suggestion |
It's still a problem if it's SDL2, because it shares a lot of code with SDL3. It's likely the problem will still persist when they upgrade to SDL3. |
Hello
it seems like Android 14 broken any USB controller in SDL
i did tried in amdroid 13 or lower and my controller working
only in Android 14 are not detecting
The text was updated successfully, but these errors were encountered: