Xbox 360 wireless controller - can't make it working correctly

Report issues and bugs here.
User avatar
Avecezar
Posts: 23
Joined: Fri May 08, 2020 7:28 am

Xbox 360 wireless controller - can't make it working correctly

Unread post by Avecezar » Fri May 08, 2020 2:33 pm

Hi,

I'm using the latest Android RVGL (20.0430a).
Everything works like a charm on my phone Xiaomi mi 5s plus except I can't make Xbox 360 wireless controller working. Microsoft original receiver is connected to the phone through OTG cable. Phone Android version is 6.0.1 MXB48T.

Same is with rvgl controller map application. When started I get the message: Mapping, Configure controller 0: "Xbox 360 Wireless Receiver"? During mapping procedure there is no response from the app on any button except B and BACK buttons both exit the app and go to the desktop. Additionally I tested reactions in various apps and there is response to different buttons. For example when writing a note I can move cursor in all directions with left knob, Y makes space, X acts as backspace. Main Xbox button usually acts as overview button showing all open apps.

In RVGL, configure controller option I get the following controllers to choose from:
- keyboard/touch
- [1] Xbox 360 Wireless Receiv...
- [2] Xbox 360 Wireless Receiv...
- [3] Xbox 360 Wireless Receiv...
- [4] Xbox 360 Wireless Receiv...
- Android Accelerometer

In menu, A button acts as enter, B and BACK as go back to previous menu.
In configure controller the only button which registers is A button - as return.
In race B and BACK buttons bring in-game menu options, A acts as enter, all other pad controls do nothing.

gamecontroller_log.txt content:

Code: Select all

There are 5 joysticks attached
Joystick 0: Xbox 360 Wireless Receiver
       axes: 6
      balls: 0
       hats: 0
    buttons: 36
instance id: 0
       guid: 30396232393162346330326334636566
    VID/PID: 0x0000/0x0000
Joystick 1: Xbox 360 Wireless Receiver
       axes: 6
      balls: 0
       hats: 0
    buttons: 36
instance id: 1
       guid: 65353331386662343338643939643636
    VID/PID: 0x0000/0x0000
Joystick 2: Xbox 360 Wireless Receiver
       axes: 6
      balls: 0
       hats: 0
    buttons: 36
instance id: 2
       guid: 65613532386633373963616462363038
    VID/PID: 0x0000/0x0000
Joystick 3: Xbox 360 Wireless Receiver
       axes: 6
      balls: 0
       hats: 0
    buttons: 36
instance id: 3
       guid: 38313038323730383864666463383533
    VID/PID: 0x0000/0x0000
Joystick 4: Android Accelerometer
       axes: 3
      balls: 0
       hats: 0
    buttons: 0
instance id: 4
       guid: 416e64726f696420416363656c65726f
    VID/PID: 0x0000/0x0000
Watching joystick 0: (Xbox 360 Wireless Receiver)
Joystick has 6 axes, 0 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
    ====================================================================================
Please help
User avatar
Huki
Developer
Posts: 307
Joined: Wed Dec 06, 2017 5:54 am
Discord: Huki#1668

Re: Xbox 360 wireless controller - can't make it working correctly

Unread post by Huki » Mon Jun 29, 2020 6:14 am

The controller support on Android can be a bit broken, and I suspect this to be due to bugs / limitations in the SDL2 version that the game is built with. Recent SDL2 updates bring much needed improvements to the Android controller support, so wait for the next RVGL release. I can also post a test build here when it's ready.
Post Reply