Android + USB controller = no input events detected?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GiannisG

Hello,

I made a simple app that uses 2 input events, a YES and a NO, mapped like this:

ui_no:
Device 0, Button 1 (DualShock Circle, Xbox B, Nintendo A).

ui_yes:
Device 0, Button 0 (DualShock Cross, Xbox A Nintendo B).

Application: when the user presses the YES button, the screen turns green and a label says “YES.” When they press NO, the screen turns red and says “NO.” It’s to be used during my son’s speech therapy.

The app runs fine on desktop with a DIY arcade USB controller I made with 2 big buttons (green and red). It also works well with a cheap no-name USB controller.

The thing is, I want to load the app on my Samsung tablet, to make the whole thing more portable. I did the Android export just fine and loaded the app on my tablet. I then connected the USB controllers (both cases) with an adaptor.

The problem is, the app runs, but the inputs don’t work. The tablet picks up the controller inputs in its general interface (e.g. in the home screen), but not in the app itself.

Any ideas why this happens? Do I need to change something at the input mapping to include the case of the mobile device?

Many thanks!