Swordfish90 / Lemuroid

All in one emulator on Android!
GNU General Public License v3.0
2.51k stars 164 forks source link

Cannot use 2 different controllers #612

Closed enboig closed 1 year ago

enboig commented 1 year ago

Describe the bug Installed Lemuroid on androidTV (xiaomi box s). Paired a bitdo m30 and a bitdo zero2. When playing a multiplayer game, only started controller can move; normal buttons work for both player, but just player 1 can use directional buttons.

To Reproduce Get 2 different controllers, try a snes multiplayer game. I don't know how to track this error to give more information.

Expected behavior Be able to use 2 different controllers.

Smartphone (please complete the following information):

I paired both controllers as dinput as bitdo manual indicates for android; xinput is also available.

enboig commented 1 year ago

As usual, you can search for similar bugs, but only after submitting yours they appear. It seems similar to #322 If more info is needed (never used adb on androidtv, but shouldn't be much different from android one) I will try to send it.

enboig commented 1 year ago

And may be related to #300, but first controller work flawless on games, second one only on menus.

enboig commented 1 year ago

Found a solution on https://forums.libretro.com/t/8bitdo-m30-w-retroarch/21175/5 configuring m30 as digital dpad solved the problem:

I just got an M30 also, and although I’ve only tried it out with the Switch so far, and not any sort of Retroarch, it has a unique setup that isn’t mentioned in the manual or website, as far as I can tell. I’m assuming these functions are across the board, and not only when functioning with a Switch. By default the dpad is defined as the left-analog stick. Weird choice on 8bitdo’s part. You can reassign the dpad using button commands: Hold the Minus button plus a dpad direction for five seconds to reassign: Minus + Up = digital dpad Minus + Left = left analog Minus + Right = right analog Minus + Down = Toggles the ABXY buttons to the match the Switch buttons according to their physical labelling.