So I just wiped InputAutoConfig.ini and started again.
When it's this:
; 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
the game works perfectly, but keyboard only - WASD and cursors and a few others.
When I add this:
; usb gamepad _START
[usb gamepad ]
plugged = True
Start = button(6)
A Button = button(1)
B Button = button(2)
X Axis = "hat(0 Left Right)"
Y Axis = "hat(0 Up Down)"
; usb gamepad _END
the keyboard stops working and the Start, A and B buttons all map to the proper buttons on the arcade joystick, (and button 5 quits back to EmulationStation) but the stick itself does absolutely nothing.
Those X and Y axis lines are taken from some semi-gibberish here:
https://retropie.org.uk/docs/Nintendo-64/
where it says *"Note for configuring Arcade Joystick or non analogue controller to use N64 correctly.
Changing the below inside /opt/retropie/configs/n64/InputAutoCfg.ini
From X Axis = "hat(0 Left, 0 Right)" Y Axis = "hat(0 Up, 0 Down)"
To X Axis = "hat(0 Left Right)" Y Axis = "hat(0 Up Down)""*
But none of those lines, with or without quote marks, make the joystick do anything at all.
If I change it to:
; usb gamepad _START
[usb gamepad ]
plugged = True
Start = button(6)
A Button = button(1)
B Button = button(2)
DPad D = hat(0 Down)
DPad U = hat(0 Up)
DPad L = hat(0 Left)
DPad R = hat(0 Right)
; usb gamepad _END
nothing changes. The stick still does nothing, whether I put quotes round the hat commands or not.
What in blazes do I need to do to make the dumb emulator recognise the stick?