Hi,
I am trying to get my Anbernic RG406V’s gamepad working with Defold.
I already could put my game (android bundle) on the device, I could kind of make my game work but using RAW gamepad events, but I would like to map it properly.
For testing I have bundled this publicexamples/examples/gamepad_tester at master · britzl/publicexamples · GitHub but using the builtins gamepads.txt file.
Reading the logs on device I have this:
03-01 23:02:11.109 5571 5594 W defold : WARNING:INPUT: No gamepad map found for gamepad 0 (Virtual). The raw gamepad map will be used.
03-01 23:02:11.109 5571 5594 W defold : WARNING:INPUT: No gamepad map found for gamepad 1 (retrogame_joypad). The raw gamepad map will be used.
03-01 23:02:11.117 5571 5594 D defold : DEBUG:SCRIPT: JJKJJ
03-01 23:02:11.119 5571 5594 D defold : DEBUG:SCRIPT:
03-01 23:02:11.119 5571 5594 D defold : { --[[0xc05e99a0]]
03-01 23:02:11.119 5571 5594 D defold : gmt_offset = 60,
03-01 23:02:11.119 5571 5594 D defold : device_model = "RG406V",
03-01 23:02:11.119 5571 5594 D defold : manufacturer = "Anbernic",
03-01 23:02:11.119 5571 5594 D defold : system_name = "Android",
03-01 23:02:11.119 5571 5594 D defold : system_version = "13",
03-01 23:02:11.119 5571 5594 D defold : api_version = "33",
03-01 23:02:11.119 5571 5594 D defold : language = "fr",
03-01 23:02:11.119 5571 5594 D defold : user_agent = "",
03-01 23:02:11.119 5571 5594 D defold : device_language = "fr",
03-01 23:02:11.119 5571 5594 D defold : territory = "CH",
03-01 23:02:11.119 5571 5594 D defold : device_ident = "6430e5706f0438cc"
03-01 23:02:11.119 5571 5594 D defold : }
03-01 23:02:11.119 5571 5594 W defold : WARNING:ENGINE: Unknown Android input method [KeyEvent], defaulting to key events
03-01 23:02:11.122 5571 5594 I defold : INFO:DLIB: SSDP: Started on address 192.168.1.116
It seems the anbernic has kind of 2 game pad (maybe because there is a touch screen on which you can put a virtual gamepad…) which one is the “retrogame_joypad”.
But in the gamepad definition it seems the “retrogame_joypad” is already mapped in the builtins… (defold v1.12.1)..
What am I missing?
I don’t understand how Defold associates a gamepad binding with a gamepad, just by name?? Name and platform?
Moreover, what means this line
WARNING:ENGINE: Unknown Android input method [KeyEvent], defaulting to key events
Thanks for your help!
(anyway, I could map the raw events with left pad and left stick and the Y buttons is sending “key_space” action_id… so I could make my simple game working… and that is so cool to play my own game on this device!
)