Help editing n64 InputAutoCfg file for GPIO
-
OK,
That means that it is setup in single player. Plug a keyboard in and press F4 whilst in emulation station.
Type the following:
sudo nano /etc/modprobe.d/mk_arcade_joystick.conf
It will probably contain a line as follows:
options mk_arcade_joystick_rpi map=1
If it does change this line to
options mk_arcade_joystick_rpi map=1,2
press CTRL+X, Y, Enter to save the file and exit the nano editor
type
sudo reboot
into the console. -
you have no idea how much i appreciate your replys. im hitting f4, along with every button on the keyboard but that black screen where you type things isnt coming up. i chose quit emulationstation and a black screen where i could type came up (not sure if it's the right screen) but when i typed what you wrote that next line never appeared. on the other build that came with the cabinet i could his the ] button on my keyboard and get that screen.
-
F4 should be a hard coded quit key in Emulationstation. It sounds like your keyboard isn't being recognised. Unplug it and reconnect it (possibly to a different usb port on the Pi).
Alternatively if you have it on the network, you can do the same commands by using putty or a similar terminal program over the network.
-
holding FN and pushing f4 works. I've entered that script and what i type goes to the top of a new blank black screen except for some things way at the bottom.
-
The should either have been an empty file or just the one line in it. I'm hoping that the stuff at the bottom are the shortcut keys, they aren't in the file, they are like a help screen. If there was nothing in the file, then just type in:
options mk_arcade_joystick_rpi map=1,2
press CTRL+X, Y, Enter to save the file and exit the nano editor.
Then
sudo reboot
to force your Pi to restart, this should then load the config.You need to configure both inputs in Emulation Station, as they are listed as separate devices (GPIOController1 and GPIOController2) and the config doesn't automatically switch from player 1 to player 2 (this is different to a USB gamepad, where if you have 2 identical ones, the config automatically is used on both). Press Start on the first controller and Configure Input, then press a button on controller 2 to set it up.
-
You are a lifesaver. One more thing, my controls all work with the various emulators, but my n64 is giving me trouble for days and i cant figure it out. it seems when i input the dpad controls and go into the game its using the analog which is no good to the games i have. when i input the joystick in the analog controls it just goes all wonky. the actual buttons seem to work okay but not the joystick. sometimes depending on what i input, one or two directions might work, but thats it. any ideas?
-
@simonster said in Any way to access the rest of a 32gb sd card when I flash a 16gb image?:
The should either have been an empty file or just the one line in it. I'm hoping that the stuff at the bottom are the shortcut keys, they aren't in the file, they are like a help screen. If there was nothing in the file, then just type in:
options mk_arcade_joystick_rpi map=1,2
press CTRL+X, Y, Enter to save the file and exit the nano editor.
Then
sudo reboot
to force your Pi to restart, this should then load the config.You need to configure both inputs in Emulation Station, as they are listed as separate devices (GPIOController1 and GPIOController2) and the config doesn't automatically switch from player 1 to player 2 (this is different to a USB gamepad, where if you have 2 identical ones, the config automatically is used on both). Press Start on the first controller and Configure Input, then press a button on controller 2 to set it up.
Hey. Do u know how I can get the dpad working for my cpio joystick. When I map the joystick it acts as the analog stick in the emu. When I map it as the analog it becomes all wonky.
-
bump
-
The default N64 emulator is not a LibRetro emulator (which differs from most of the emulators in RetroPie), its controls are setup using an entirely different method. You will have to take a look at the documentation: https://retropie.org.uk/docs/Nintendo-64/
-
@simonster said in How can I get n64 dpad working with cpio joystick?:
The default N64 emulator is not a LibRetro emulator (which differs from most of the emulators in RetroPie), its controls are setup using an entirely different method. You will have to take a look at the documentation: https://retropie.org.uk/docs/Nintendo-64/
i just ran jstest to see what exactly comes up when i try and use my joystick. up is -32767
down is 32767 left is -32767 and right is 32767
when i find my controller in sudo nano /opt/retropie/configs.n64/InputAutoCfg.ini i see this (nothing for dpad, which is all im looking for)GPIO Controller 1_START
[GPIO Controller 1]
plugged = True
plugin = 2
mouse = false
AnalogDeadzone = 4096,4096
AnalogPeak = 32768, 32768
Mempak switch =
Rumblepak switch =
Start = button(11)
C Button D = button(3)
A Button = button(0)
R Trig = button(7)
C Button U = button(3)
B Button = button(1)
X Axis = axis(0-, 0+)
Y Axis = axis(1-, 1+)
Z Trig = button(6)
; GPIO Controller 1_END -
bump
-
@simonster said in Help editing n64 InputAutoCfg file for CPIO:
The default N64 emulator is not a LibRetro emulator (which differs from most of the emulators in RetroPie), its controls are setup using an entirely different method. You will have to take a look at the documentation: https://retropie.org.uk/docs/Nintendo-64/
i installed that parallel emu and my joystick works fine on it, but of course it runs way too slow. help?
-
bump
-
I am in the middle of moving house, so haven't got my cab available to test but the fields you need are
Dpad D= axis(0+)
Dpad U= axis(0-)
Dpad R= axis(1+)
Dpad L= axis (1-)Or maybe 0/1 should be swapped.
-
@simonster i want to tell you how much i appreciate you helping me. After more twelve hour days than id like to admit trying to get it to work i finally did it!! I followed what u last told me to do and put in "0" instead of "2" to make it manual. The last little piece im wondering about is can i map one button as either direction of the analog stick? Im doing this for the wrestling games that all require a tap of the analog to perform your finishing move.
-
@kiphouse checking the Mupen64 documentation: http://mupen64plus.org/wiki/index.php?title=Mupen64Plus_Plugin_Parameters I think you should be able to do this, try:
X Axis= button(0,1)
Y Axis= button(2,3)You will need to get your button numbers. In the settings above, button 0 is left, 1 right, 2 up and 3 down.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.