I’m not sure about about what ‘kind’ of gamepad means.
I have two gamepads to test.
The first one is the 8bitdo lite. While on windows everything works fine.
Android doesn’t work…the 8bitdo lite I try to test with Bluetooth and Wired on my phone and a tablet.
This is the gamepad
Is the same device you can see on the video I also upload.
Other device is Gulikit Pro Controller.
The same it doesn’t work…But I’m sure this should work on Android.
I test with other game engine Unity and they were working fine.
Well you can even use the OS Android without any issues.
I was also looking the DefoldActivity.java
I’m not sure were you read the input for this devices.
I think something is missing. Like I show on the video if I build the Html5 version I can use the Gamepad…I was also trying to develop for the Android TV and Fire TV but looks like other user wasn’t able to use Defold there. I think the main activity need a review.
When I connect the gamepad the Android log cat show
WARNING:INPUT: No gamepad map found for gamepad 1 (GuliKit Controller AW). The raw gamepad map will be used.
I try to use this. But nothings show the log cat
if action_id == hash("raw") then
pprint(action.gamepad_buttons)
pprint(action.gamepad_axis)
pprint(action.gamepad_hats)
end
I cannot find how to use the Raw