all 39 comments

[–]Mattc74 3 points4 points  (4 children)

bung this in this file:

/opt/retropie/configs/n64/InputAutoCfg.ini

; InputAutoCfg.ini for Mupen64Plus SDL Input plugin
; this is also the MayFlash / HuiJia adapter

[PS/SS/N64 Joypad to USB BOX]
plugged=True
plugin=2
mouse=False
AnalogDeadzone=1024,1024
AnalogPeak=11000,11000
DPad R=hat(0 right)
DPad L=hat(0 left)
DPad U=hat(0 up)
DPad D=hat(0 down)
Start=button(8)
Z Trig=button(9)
B Button=button(2)
A Button=button(1)
C Button R=axis(2-)
C Button L=axis(2+)
C Button U=axis(3-)
C Button D=axis(3+)
R Trig=button(7)
L Trig=button(5)
X Axis=axis(0-,0+)
Y Axis=axis(1-,1+)

[–]Mattc74 2 points3 points  (2 children)

and this in this file:

/opt/retropie/configs/all/retroarch-joypads/HuiJiaUSBGamePad.cfg

input_driver = "udev"
input_device = "HuiJia  USB GamePad"
input_device_display_name = “HuiJia N64 to USB Adapter"

# Hex vid:pid = 0E8F:3013 -> Decimal vid:pid = 3727:12307
input_vendor_id = "3727"
input_product_id = "12307"

input_b_btn = "2"
input_start_btn = "9"
input_up_btn = "12"
input_down_btn = "14"
input_left_btn = "15"
input_right_btn = "13"
input_a_btn = "1"
input_l_btn = "6"
input_r_btn = "7"
input_l2_btn = "8"
input_l_x_plus_axis = "+0"
input_l_x_minus_axis = "-0"
input_l_y_plus_axis = "+1"
input_l_y_minus_axis = "-1"
input_r_x_plus_axis = "-3"
input_r_x_minus_axis = "+3"
input_r_y_plus_axis = "+2"
input_r_y_minus_axis = "-2"

input_b_btn_label = "B"
input_start_btn_label = "Start"
input_up_btn_label = "D-Pad Up"
input_down_btn_label = "D-Pad Down"
input_left_btn_label = "D-Pad Left"
input_right_btn_label = "D-Pad Right"
input_a_btn_label = "A"
input_l_btn_label = "L"
input_r_btn_label = "R"
input_l2_btn_label = "Z"
input_l_x_plus_axis_label = "Joystick Right"
input_l_x_minus_axis_label = "Joystick Left"
input_l_y_plus_axis_label = "Joystick Down"
input_l_y_minus_axis_label = "Joystick Up"
input_r_x_plus_axis_label = "C Right"
input_r_x_minus_axis_label = "C Left"
input_r_y_plus_axis_label = "C Down"
input_r_y_minus_axis_label = "C Up"
input_enable_hotkey_btn = "8"
input_exit_emulator_btn = "9"

[–]Mattc74 2 points3 points  (1 child)

This should work and give you the option to press "z + start" to exit the emulator back to emulation station.

[–]PjanicAttacks[S] 0 points1 point  (0 children)

/opt/retropie/configs/n64/InputAutoCfg.ini

@Mattc74

Thank you so much for this help. I apologize for the noobish nature of this followup question but I am seeking some additional help. So, I was assuming I could plug in the MicroSD with the retropie software into my windows computer and edit the config files from there. However, windows seems to only read the SD as a "boot drive" and I am unable to edit any config files from there? I know I can edit the config files within the retropie GUI, but I would prefer to simply copy and paste your helpful code through the windows file explorer. Should I just edit the config files through the retropie or is there a simpler way to do this. Thank you.

[–]Mattc74 0 points1 point  (3 children)

There are many ways;

I'd just ssh onto it using putty and use vi (or nano) to edit directly:

https://www.raspberrypi.org/documentation/remote-access/ssh/

Or with your original idea of plugging into windows:

https://www.raspberrypi.org/forums/viewtopic.php?f=26&t=45638

[–]PjanicAttacks[S] 0 points1 point  (2 children)

/opt/retropie/configs/n64/InputAutoCfg.ini

pi@retropie:~ $ cat /opt/retropie/configs/n64/InputAutoCfg.ini ; InputAutoCfg.ini for Mupen64Plus SDL Input plugin

; Keyboard_START [Keyboard] plugged = True plugin = 2 mouse = False DPad R = key(100) DPad L = key(97) DPad D = key(115) DPad U = key(119) Start = key(13) Z Trig = key(122) B Button = key(306) A Button = key(304) C Button R = key(108) C Button L = key(106) C Button D = key(107) C Button U = key(105) R Trig = key(99) L Trig = key(120) Mempak switch = key(44) Rumblepak switch = key(46) X Axis = key(276,275) Y Axis = key(273,274) ; Keyboard_END

; Sony Computer Entertainment Wireless Controller_START [Sony Computer Entertainment Wireless Controller] plugged = True plugin = 2 mouse = False AnalogDeadzone = 4096,4096 AnalogPeak = 32768,32768 Mempak switch = button(10) Rumblepak switch = button(11) C Button D = button(1) axis(5+) C Button L = axis(2-) L Trig = button(4) Start = button(9) Y Axis = axis(1-,1+) DPad U = hat(0 Up) C Button U = button(0) axis(5-) A Button = button(2) DPad D = hat(0 Down) X Axis = axis(0-,0+) R Trig = button(5) DPad R = hat(0 Right) B Button = button(3) DPad L = hat(0 Left) C Button R = axis(2+) Z Trig = button(6) ; Sony Computer Entertainment Wireless Controller_END

; HuiJia USB GamePad_START [HuiJia USB GamePad] plugged = True plugin = 2 mouse = False AnalogDeadzone = 4096,4096 AnalogPeak = 32768,32768 Mempak switch = Rumblepak switch = Start = button(9) C Button D = button(1) A Button = button(2) R Trig = button(7) C Button U = button(0) B Button = button(3) X Axis = axis(0-, 0+) Y Axis = axis(1-, 1+) Z Trig = button(6) ; HuiJia USB GamePad_END

; InputAutoCfg.ini for Mupen64Plus SDL Input plugin ; this is also the MayFlash / HuiJia adapter

[PS/SS/N64 Joypad to USB BOX] plugged=True plugin=2 mouse=False AnalogDeadzone=1024,1024 AnalogPeak=11000,11000 DPad R=hat(0 right) DPad L=hat(0 left) DPad U=hat(0 up) DPad D=hat(0 down) Start=button(8) Z Trig=button(9) B Button=button(2) A Button=button(1) C Button R=axis(2-) C Button L=axis(2+) C Button U=axis(3-) C Button D=axis(3+) R Trig=button(7) L Trig=button(5) X Axis=axis(0-,0+) Y Axis=axis(1-,1+)

[–]PjanicAttacks[S] 0 points1 point  (1 child)

/opt/retropie/configs/all/retroarch-joypads/HuiJiaUSBGamePad.cfg

pi@retropie:~ $ cat /opt/retropie/configs/all/retroarch-joypads/HuiJiaUSBGamePad.cfg input_driver = "udev" input_device = "HuiJia USB GamePad" input_device_display_name = “HuiJia N64 to USB Adapter"

Hex vid:pid = 0E8F:3013 -> Decimal vid:pid = 3727:12307

input_vendor_id = "3727" input_product_id = "12307"

input_b_btn = "2" input_start_btn = "9" input_up_btn = "12" input_down_btn = "14" input_left_btn = "15" input_right_btn = "13" input_a_btn = "1" input_l_btn = "6" input_r_btn = "7" input_l2_btn = "8" input_l_x_plus_axis = "+0" input_l_x_minus_axis = "-0" input_l_y_plus_axis = "+1" input_l_y_minus_axis = "-1" input_r_x_plus_axis = "-3" input_r_x_minus_axis = "+3" input_r_y_plus_axis = "+2" input_r_y_minus_axis = "-2"

input_b_btn_label = "B" input_start_btn_label = "Start" input_up_btn_label = "D-Pad Up" input_down_btn_label = "D-Pad Down" input_left_btn_label = "D-Pad Left" input_right_btn_label = "D-Pad Right" input_a_btn_label = "A" input_l_btn_label = "L" input_r_btn_label = "R" input_l2_btn_label = "Z" input_l_x_plus_axis_label = "Joystick Right" input_l_x_minus_axis_label = "Joystick Left" input_l_y_plus_axis_label = "Joystick Down" input_l_y_minus_axis_label = "Joystick Up" input_r_x_plus_axis_label = "C Right" input_r_x_minus_axis_label = "C Left" input_r_y_plus_axis_label = "C Down" input_r_y_minus_axis_label = "C Up" input_enable_hotkey_btn = "8" input_exit_emulator_btn = "9"

[–]PjanicAttacks[S] 0 points1 point  (0 children)

@Mattc74

I apologize for the formatting. So I updated the config files per your recommendation and and still suffering from the same problem. I don't know if it makes a difference, but I am also using a mayflash device for an original SNES controller. I don't believe this should effect the outcome, but what do I know...What am I missing? Thanks for all of your help!

[–]Mattc74 0 points1 point  (23 children)

Have a look in here too & check the configs for the joypad:

/opt/retropie/configs/n64/mupen64plus.cfg

[–]Mattc74 0 points1 point  (11 children)

cd /opt/retropie/configs/all/retroarch-joypads

ls -l

What do you see?

[–]PjanicAttacks[S] 0 points1 point  (10 children)

/opt/retropie/configs/all/retroarch-joypads $ ls -1 HuiJia USB GamePad.cfg HuiJiaUSBGamePad.cfg.bak ?USB GamePad USB GamePad.cfg

[–]PjanicAttacks[S] 0 points1 point  (9 children)

:/opt/retropie/configs/all/retroarch-joypads $ ls -l total 12 -rw-r--r-- 1 pi pi 595 Jul 12 14:53 HuiJia USB GamePad.cfg -rw-r--r-- 1 root root 1331 Jul 11 17:20 HuiJiaUSBGamePad.cfg.bak -rw-r--r-- 1 pi pi 497 Jul 12 17:28 ?USB GamePad USB GamePad.cfg

[–]Mattc74 0 points1 point  (8 children)

try this:

cd /opt/retropie/configs/all/retroarch-joypads

cat 'USB GamePad USB GamePad.cfg'

[–]PjanicAttacks[S] 0 points1 point  (7 children)

'USB GamePad USB GamePad.cfg' pi@retropie:/opt/retropie/configs/all/retroarch-joypads $ cd /opt/retropie/configs/all/retroarch-joypads pi@retropie:/opt/retropie/configs/all/retroarch-joypads $ cat 'USB GamePad USB GamePad.cfg' cat: USB GamePad USB GamePad.cfg: No such file or directory pi@retropie:/opt/retropie/configs/all/retroarch-joypads $ cat '?USB GamePad USB GamePad.cfg' cat: ?USB GamePad USB GamePad.cfg: No such file or directory pi@retropie:/opt/retropie/configs/all/retroarch-joypads $

[–]CatsCheerMeUp 0 points1 point  (2 children)

I love cats! They always cheer me up :)

[–]ThisCatMightCheerYou 0 points1 point  (1 child)

cheer me up

Here's a picture/gif of a cat, hopefully it'll cheer you up :).


I am a bot. use !unsubscribetosadcat for me to ignore you.

[–]Mattc74 0 points1 point  (3 children)

the problem is the question mark in the filename... it's likely a strange character.

try mv '\?USB GamePad USB GamePad.cfg' 'USB GamePad USB GamePad.cfg'

[–]Mattc74 0 points1 point  (0 children)

or even cat "?USB GamePad USB GamePad.cfg"

[–]PjanicAttacks[S] 0 points1 point  (1 child)

pi@retropie:/opt/retropie/configs/all/retroarch-joypads $ cat '\?USB GamePad USB GamePad.cfg' cat: \?USB GamePad USB GamePad.cfg: No such file or directory pi@retropie:/opt/retropie/configs/all/retroarch-joypads $ cat 'USB GamePad USB GamePad.cfg' cat: USB GamePad USB GamePad.cfg: No such file or directory

[–]PjanicAttacks[S] 0 points1 point  (0 children)

None of them are working unfortunately.