Huki wrote: ↑Mon Aug 06, 2018 6:20 am
KoopaTheQuick wrote: ↑Sun Aug 05, 2018 4:12 am
Using the file that you provided with my GUID made it so that everything seemed to work correctly except for the X and O buttons. I was able to map everything except for X in the configure screen, but when I went into a race to test it the O button was accelerating the car even though I mapped it to flip car and X was seemingly doing nothing. Any suggestions? When I try to configure the controller without the file X shows as Button 1 and O just refuses to map so I can't see the number.
Make sure you're using the latest test build (
rvgl_android_controller_test2).
I have some news: I managed to build an interactive controller mapping tool included with SDL2.
Download:
rvgl_controllermap_2.0.8.apk
The mapping is saved to
profiles/gamecontroller_log.txt in the RVGL folder.
Basic instructions:
Press the buttons on your controller when indicated
(Your controller may look different than the picture)
If you want to correct a mistake, press backspace or the back button on your device
To skip a button, press SPACE or click/touch the screen
You just need to configure your controller with this tool and use the mapping from the log file.
Also post the mapping here.
Thanks for the reply Huki. That test build fails to start after I install the apk. It just says "Unfortunately RVGL has stopped." I tried the mapping app with the most recent stable version and my X button (bottom face button) still refuses to map in the in-game controller configuration screen. Everything else works as expected.
Below is the controller log file output.
There are 2 joysticks attached
Joystick 0: Wireless Controller
axes: 6
balls: 0
hats: 1
buttons: 36
instance id: 0
guid: 30303839663330346632363232623138
VID/PID: 0x0000/0x0000
Joystick 1: Android Accelerometer
axes: 3
balls: 0
hats: 0
buttons: 0
instance id: 1
guid: 416e64726f696420416363656c65726f
VID/PID: 0x0000/0x0000
Watching joystick 0: (Wireless Controller)
Joystick has 6 axes, 1 hats, 0 balls, and 36 buttons
====================================================================================
Press the buttons on your controller when indicated
(Your controller may look different than the picture)
If you want to correct a mistake, press backspace or the back button on your device
To skip a button, press SPACE or click/touch the screen
To exit, press ESC
====================================================================================
Mapping:
30303839663330346632363232623138,Wireless Controller,platform:Android,a:b1,b:b17,x:b0,y:b2,back:b15,guide:b5,start:b16,leftstick:b4,rightstick:b6,leftshoulder:b3,rightshoulder:b18,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a5,lefttrigger:a3,righttrigger:a4,