mupen64plus / mupen64plus-user-issues

Issue reports from users go here
http://www.mupen64plus.org/
17 stars 3 forks source link

Two MAYFLASH N64 Controller Adaptors Issue #721

Closed trymeouteh closed 4 years ago

trymeouteh commented 4 years ago

Does anyone own two MAYFLASH N64 Controller Adaptors? I am trying to be able to use four N46 controllers with M64Py which is a front end Mupen64Plus emulator. For whatever reason when I plug in 2 mayflash adapters I am not able to set each controller to Player1, Player2, Player3 and Player4. But for whatever reason it will set Player1 to controller 1 and 3, and set Player 2 to controller 2 and 4 and not allowing you to control Player3 and Player4.

Anyone know why this is and how to solve this. I did some testing and the culprit is mupen64plus itself, not the controllers, not the controller adapters, and not M64Py. I tested the four N64 controllers with the Dolphin emulator and they all worked file. I tried editing the mupen64plus.cfg and manually setting the controllers and launching a four player game in mupen64plus (not M64Py) and the issue occurred and it altered the mupen64plus.cfg file after setting Player1 to controller 1 and 3, and set Player 2 to controller 2 and 4.

I also tried four Xbox 360 wireless controllers in mupen64plus and I had no issue.

Anyone know how to fix this?

trymeouteh commented 4 years ago

I have found a solution.

Open the /usr/share/mupen64plus/InputAutoCfg.ini. If there is no InputAutoCfg.ini in that directory open the /usr/local/share/mupen64plus/InputAutoCfg.ini In InputAutoCfg.ini press CTRL+F and search for "HuiJia USB GamePad". You will find this controller configuration...

[Linux: HuiJia USB GamePad]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 100,100
AnalogPeak = 20000,20000
DPad R = button(13)
DPad L = button(15)
DPad D = button(14)
DPad U = button(12)
Start = button(9)
Z Trig = button(8)
B Button = button(2)
A Button = button(1)
C Button R = axis(3-)
C Button L = axis(3+)
C Button D = axis(2+)
C Button U = axis(2-)
R Trig = button(7)
L Trig = button(6)
Mempak switch = key(109)
Rumblepak switch = key(114)
X Axis = axis(0-,0+)
Y Axis = axis(1-,1+)
__NextController:
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 100,100
AnalogPeak = 20000,20000
DPad R = button(29)
DPad L = button(31)
DPad D = button(30)
DPad U = button(28)
Start = button(25)
Z Trig = button(24)
B Button = button(18)
A Button = button(17)
C Button R = axis(7-)
C Button L = axis(7+)
C Button D = axis(6+)
C Button U = axis(6-)
R Trig = button(23)
L Trig = button(22)
Mempak switch = key(109)
Rumblepak switch = key(114)
X Axis = axis(4-,4+)
Y Axis = axis(5-,5+)

Remove the "__NextController:" line and all the lines after it in the configuration so it looks like this after

[Linux: HuiJia USB GamePad]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 100,100
AnalogPeak = 20000,20000
DPad R = button(13)
DPad L = button(15)
DPad D = button(14)
DPad U = button(12)
Start = button(9)
Z Trig = button(8)
B Button = button(2)
A Button = button(1)
C Button R = axis(3-)
C Button L = axis(3+)
C Button D = axis(2+)
C Button U = axis(2-)
R Trig = button(7)
L Trig = button(6)
Mempak switch = key(109)
Rumblepak switch = key(114)
X Axis = axis(0-,0+)
Y Axis = axis(1-,1+)

Click Save and close te InputAutoCfg.ini file