Bonjour,
j'ai le même soucis avec ma manette kubii.
J'ai essayé de suivre au mieux le Tuto expliqué ici:
https://forum.recalbox.com/topic/9016/a-lire-manettes-n64
mais rien à faire.
La première chose que je ne comprends pas c'est que je n'ai pas de fichier /recalbox/share/system/configs/mupen64/InputAutoCfg.ini
dans mon dossier mupen64. Je ne trouve que les fichiers /recalbox/share/system/configs/mupen64/input.xml
et /recalbox/share/system/configs/mupen64/mupen64plus.cfg
J'ai quand même essayé d'avancer en commençant par modifier le fichier /recalbox/share/system/recalbox.conf
en ajoutant la ligne
n64.configfile=dummy
Puis en testant les boutons de ma manette Kubii avec la commande ssh
sdl2-jstest -e
J'obtiens le mapping suivant pour les 10 boutons de ma manette:
Start
SDL_JOYDEVICEADDED which:0
SDL_CONTROLLERDEVICEADDED which:0
SDL_JOYBUTTONDOWN: joystick: 0 button: 9 state: 1 code:297
SDL_JOYBUTTONUP: joystick: 0 button: 9 state: 0 code:297
Z
SDL_JOYBUTTONDOWN: joystick: 0 button: 8 state: 1 code:296
SDL_JOYBUTTONUP: joystick: 0 button: 8 state: 0 code:296
L
SDL_JOYBUTTONDOWN: joystick: 0 button: 6 state: 1 code:294
SDL_JOYBUTTONUP: joystick: 0 button: 6 state: 0 code:294
R
SDL_JOYBUTTONDOWN: joystick: 0 button: 7 state: 1 code:295
SDL_JOYBUTTONUP: joystick: 0 button: 7 state: 0 code:295
B
SDL_JOYBUTTONDOWN: joystick: 0 button: 4 state: 1 code:292
SDL_JOYBUTTONUP: joystick: 0 button: 4 state: 0 code:292
A
SDL_JOYBUTTONDOWN: joystick: 0 button: 5 state: 1 code:293
SDL_JOYBUTTONUP: joystick: 0 button: 5 state: 0 code:293
CG
SDL_JOYBUTTONDOWN: joystick: 0 button: 3 state: 1 code:291
SDL_JOYBUTTONUP: joystick: 0 button: 3 state: 0 code:291
CH
SDL_JOYBUTTONDOWN: joystick: 0 button: 0 state: 1 code:288
SDL_JOYBUTTONUP: joystick: 0 button: 0 state: 0 code:288
CD
SDL_JOYBUTTONDOWN: joystick: 0 button: 1 state: 1 code:289
SDL_JOYBUTTONUP: joystick: 0 button: 1 state: 0 code:289
CB
SDL_JOYBUTTONDOWN: joystick: 0 button: 2 state: 1 code:290
SDL_JOYBUTTONUP: joystick: 0 button: 2 state: 0 code:290
J'ai ensuite été modifier les données dans le fichier /recalbox/share/system/configs/mupen64/mupen64plus.cfg
somme suit:
# Mupen64Plus SDL Input Plugin config parameter version number. Please don't change this version number.
version = 2
# Controller configuration mode: 0=Fully Manual, 1=Auto with named SDL Device, 2=Fully automatic
mode = 0
# Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number
device = 0
# SDL joystick name (or Keyboard)
name = "usb gamepad "
# Specifies whether this controller is 'plugged in' to the simulated N64
plugged = True
# Specifies which type of expansion pak is in the controller: 1=None, 2=Mem pak, 5=Rumble pak
plugin = "2"
# If True, then mouse buttons may be used with this controller
mouse = False
# Scaling factor for mouse movements. For X, Y axes.
MouseSensitivity = "2.00,2.00"
# The minimum absolute value of the SDL analog joystick axis to move the N64 controller axis value from 0. For X, Y axes.
AnalogDeadzone = "4096,4096"
# An absolute value of the SDL joystick axis >= AnalogPeak will saturate the N64 controller axis value (at 80). For X, Y axes. For each axis, this must be greater than the corresponding AnalogDeadzone value
AnalogPeak = "32768,32768"
# Digital button configuration mappings
DPad R = "hat(0 Right)"
DPad L = "hat(0 Left)"
DPad D = "hat(0 Down)"
DPad U = "hat(0 Up)"
Start = "button(9)"
Z Trig = "button(8)"
B Button = "button(4)"
A Button = "button(5)"
C Button R = "button(1)"
C Button L = "button(3)"
C Button D = "button(2)"
C Button U = "button(0)"
R Trig = "button(7)"
L Trig = "button(6)"
Mempak switch = ""
Rumblepak switch = ""
# Analog axis configuration mappings
X Axis = "axis(0-,0+)"
Y Axis = "axis(1-,1+)"
mais rien à faire, cela ne fonctionne pas.
Info complémentaire: désormais, lorsque je lance la commande
sdl2-jstest -e
il me répond ça:
error: failed to read gamecontrollerdb.txt: Invalid RWops
sdl2-jstest: unknown arguments
Try 'sdl2-jstest --help' for more informations
Merci pour votre aide!