Mapper une manette N64 ?
-
Re tout le monde, Merci encore Acris pour ton aide précieuse de la dernière fois. Mais là je viens de tomber sur un problème tout neuf. J'ai pu jouer tranquillement à des jeux N64 sans soucis jusqu'à avant-hier. En effet, pour une raison inconnue, le bouton B s'est mis à me faire quitter le jeu en cours (chose qu'il n'avait jamais faite auparavant). Je n'ai pourtant rien modifié... C'est assez embêtant vu qu'approximativement 100% des jeux de N64 comprennent B parmi les boutons indispensables ^^. J'aimerais simplement avoir à repasser par le clavier pour quitter le jeu (comme avant). Est-ce que quelqu'un aurait une idée ? Merci d'avance !
-
Hello à tous, Petit up. En gros, je rappelle juste ce que je voudrais savoir : Comment faire pour que la touche permettant de revenir sur le menu des émulateurs soit à nouveau la touche ESC du clavier ? Car c'est devenu le bouton B de la manette, et c'est pas mal ennuyeux pour jouer... Merci d'avance
-
Bonjour poste les deux fichiers suivants : /usr/share/mupen64plus/InputAutoCfg.ini et /recalbox/configs/mupen64plus/mupen64plus.cfg
-
Salut Acris, Merci pour ta réponse Je ne pense pas que ça vienne du InputAutoCfg.ini vu que je l'ai récemment reremplacé par celui qui fonctionnait au départ. Du coup ça doit venir du mupen64plus.cfg (par contre, j'ignore comment poster le fichier autrement qu'en copiant collant bêtement son contenu) : ____________________
# Mupen64Plus Configuration File # This file is automatically read and written by the Mupen64Plus Core library [Audio-SDL] # Mupen64Plus SDL Audio Plugin config parameter version number Version = 1 # Frequency which is used if rom doesn't want to change it DEFAULT_FREQUENCY = 33600 # Swaps left and right channels SWAP_CHANNELS = False # Size of primary buffer in output samples. This is where audio is loaded after it's extracted from n64's memory. PRIMARY_BUFFER_SIZE = 16384 # Fullness level target for Primary audio buffer, in equivalent output samples PRIMARY_BUFFER_TARGET = 10240 # Size of secondary buffer in output samples. This is SDL's hardware buffer. SECONDARY_BUFFER_SIZE = 2048 # Audio resampling algorithm. src-sinc-best-quality, src-sinc-medium-quality, src-sinc-fastest, src-zero-order-hold, src-linear, speex-fixed-{10-0}, trivial RESAMPLE = "trivial" # Volume control type: 1 = SDL (only affects Mupen64Plus output) 2 = OSS mixer (adjusts master PC volume) VOLUME_CONTROL_TYPE = 1 # Percentage change each time the volume is increased or decreased VOLUME_ADJUST = 5 # Default volume when a game is started. Only used if VOLUME_CONTROL_TYPE is 1 VOLUME_DEFAULT = 80 [Core] # Mupen64Plus Core config parameter set version number. Please don't change this version number. Version = 1.010000 # Draw on-screen display if True, otherwise don't draw OSD OnScreenDisplay = True # Use Pure Interpreter if 0, Cached Interpreter if 1, or Dynamic Recompiler if 2 or more R4300Emulator = 2 # Disable compiled jump commands in dynamic recompiler (should be set to False) NoCompiledJump = False # Disable 4MB expansion RAM pack. May be necessary for some games DisableExtraMem = False # Increment the save state slot after each save operation AutoStateSlotIncrement = False # Activate the R4300 deb****r when ROM execution begins, if core was built with Deb****r support EnableDeb****r = False # Save state slot (0-9) to use when saving/loading the emulator state CurrentStateSlot = 0 # Path to directory where screenshots are saved. If this is blank, the default value of ${UserConfigPath}/screenshot will be used ScreenshotPath = "" # Path to directory where emulator save states (snapshots) are saved. If this is blank, the default value of ${UserConfigPath}/save will be used SaveStatePath = "" # Path to directory where SRAM/EEPROM data (in-game saves) are stored. If this is blank, the default value of ${UserConfigPath}/save will be used SaveSRAMPath = "" # Path to a directory to search when looking for shared data files SharedDataPath = "/recalbox/configs/mupen64/" # Delay interrupt after DMA SI read/write DelaySI = True # Force number of cycles per emulated instruction CountPerOp = 0 [CoreEvents] # Mupen64Plus CoreEvents config parameter set version number. Please don't change this version number. Version = 1 # SDL keysym for stopping the emulator Kbd Mapping Stop = 27 # SDL keysym for switching between fullscreen/windowed modes Kbd Mapping Fullscreen = 0 # SDL keysym for saving the emulator state Kbd Mapping Save State = 286 # SDL keysym for loading the emulator state Kbd Mapping Load State = 288 # SDL keysym for advancing the save state slot Kbd Mapping Increment Slot = 0 # SDL keysym for resetting the emulator Kbd Mapping Reset = 290 # SDL keysym for slowing down the emulator Kbd Mapping Speed Down = 291 # SDL keysym for speeding up the emulator Kbd Mapping Speed Up = 292 # SDL keysym for taking a screenshot Kbd Mapping Screenshot = 293 # SDL keysym for pausing the emulator Kbd Mapping Pause = 112 # SDL keysym for muting/unmuting the sound Kbd Mapping Mute = 109 # SDL keysym for increasing the volume Kbd Mapping Increase Volume = 93 # SDL keysym for decreasing the volume Kbd Mapping Decrease Volume = 91 # SDL keysym for temporarily going really fast Kbd Mapping Fast Forward = 102 # SDL keysym for advancing by one frame when paused Kbd Mapping Frame Advance = 47 # SDL keysym for pressing the game shark button Kbd Mapping Gameshark = 103 # Joystick event string for stopping the emulator Joy Mapping Stop = "J0B8" # Joystick event string for switching between fullscreen/windowed modes Joy Mapping Fullscreen = "" # Joystick event string for saving the emulator state Joy Mapping Save State = "" # Joystick event string for loading the emulator state Joy Mapping Load State = "" # Joystick event string for advancing the save state slot Joy Mapping Increment Slot = "" # Joystick event string for taking a screenshot Joy Mapping Screenshot = "" # Joystick event string for pausing the emulator Joy Mapping Pause = "" # Joystick event string for muting/unmuting the sound Joy Mapping Mute = "" # Joystick event string for increasing the volume Joy Mapping Increase Volume = "" # Joystick event string for decreasing the volume Joy Mapping Decrease Volume = "" # Joystick event string for fast-forward Joy Mapping Fast Forward = "" # Joystick event string for pressing the game shark button Joy Mapping Gameshark = "" [Input-SDL-Control1] # 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 = 2 # 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 = "Generic USB Joystick " # 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 = "axis(5+)" DPad L = "axis(5-)" DPad D = "axis(6+)" DPad U = "axis(6-)" Start = "button(9)" Z Trig = "button(7)" B Button = "button(8)" A Button = "button(6)" C Button R = "button(1)" C Button L = "button(3)" C Button D = "button(2)" C Button U = "button(0)" R Trig = "button(5)" L Trig = "button(4)" Mempak switch = "key(109)" Rumblepak switch = "key(114)" # Analog axis configuration mappings X Axis = "axis(0-,0+)" Y Axis = "axis(1-,1+)" [Input-SDL-Control2] # 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 = 2 # Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number device = -1 # SDL joystick name (or Keyboard) name = "" # Specifies whether this controller is 'plugged in' to the simulated N64 plugged = False # Specifies which type of expansion pak is in the controller: 1=None, 2=Mem pak, 5=Rumble pak plugin = 1 # 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 = "" DPad L = "" DPad D = "" DPad U = "" Start = "" Z Trig = "" B Button = "" A Button = "" C Button R = "" C Button L = "" C Button D = "" C Button U = "" R Trig = "" L Trig = "" Mempak switch = "" Rumblepak switch = "" # Analog axis configuration mappings X Axis = "" Y Axis = "" [Input-SDL-Control3] # 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 = 2 # Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number device = -1 # SDL joystick name (or Keyboard) name = "" # Specifies whether this controller is 'plugged in' to the simulated N64 plugged = False # Specifies which type of expansion pak is in the controller: 1=None, 2=Mem pak, 5=Rumble pak plugin = 1 # 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 = "" DPad L = "" DPad D = "" DPad U = "" Start = "" Z Trig = "" B Button = "" A Button = "" C Button R = "" C Button L = "" C Button D = "" C Button U = "" R Trig = "" L Trig = "" Mempak switch = "" Rumblepak switch = "" # Analog axis configuration mappings X Axis = "" Y Axis = "" [Input-SDL-Control4] # 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 = 2 # Specifies which joystick is bound to this controller: -1=No joystick, 0 or more= SDL Joystick number device = -1 # SDL joystick name (or Keyboard) name = "" # Specifies whether this controller is 'plugged in' to the simulated N64 plugged = False # Specifies which type of expansion pak is in the controller: 1=None, 2=Mem pak, 5=Rumble pak plugin = 1 # 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 = "" DPad L = "" DPad D = "" DPad U = "" Start = "" Z Trig = "" B Button = "" A Button = "" C Button R = "" C Button L = "" C Button D = "" C Button U = "" R Trig = "" L Trig = "" Mempak switch = "" Rumblepak switch = "" # Analog axis configuration mappings X Axis = "" Y Axis = "" [UI-Console] # Mupen64Plus UI-Console config parameter set version number. Please don't change this version number. Version = 1 # Directory in which to search for plugins PluginDir = "./" # Filename of video plugin VideoPlugin = "/usr/lib/mupen64plus/mupen64plus-video-n64.so" # Filename of audio plugin AudioPlugin = "mupen64plus-audio-sdl.so" # Filename of input plugin InputPlugin = "mupen64plus-input-sdl.so" # Filename of RSP plugin RspPlugin = "mupen64plus-rsp-hle.so" [Video-General]
-
Je me permets juste de faire un petit up à ce post... Merci d'avance !
-
Bonjour peux tu vérifier dans le inputAuto.cfg si le bouton B correspond bouton n°8 Car le bouton 8 est configuré pour sortir
# Joystick event string for stopping the emulator Joy Mapping Stop = « J0B8″
et plus loin on retrouve cette info
B Button = « button(8) »
Pour trouver les numéros des controleurs tu peux faire un jstest afin de noter la correspondance entre bouton et numéro voir https://github.com/digitalLumberjack/recalbox-os/wiki/Testez-votre-joystick-avec-jstest-(FR) Pour poster les contenus longs tu peux utiliser pastebin http://pastebin.com/ -
Salut Acris, Désolé pour ce délai excessif de réponse... Je reviens vers ma recalbox enfin. Merci pour l'info concernant les postes longs Oui, effectivement, sur inputAuto.cfg le bouton B de mon contrôleur correspond bien au bouton n°8 :
; Retrolink N64 USB clone [Generic USB Joystick] plugged = True plugin = 2 mouse = False AnalogDeadzone = 4096,4096 AnalogPeak = 32768,32768 DPad R = axis(5+) DPad L = axis(5-) DPad D = axis(6+) DPad U = axis(6-) Start = button(9) Z Trig = button(7) B Button = button(8) A Button = button(6) C Button R = button(1) C Button L = button(3) C Button D = button(2) C Button U = button(0) R Trig = button(5) L Trig = button(4) Mempak switch = key(109) Rumblepak switch = key(114) Y Axis = axis(1-,1+) X Axis = axis(0-,0+)
Et comme sur mupen64plus.cfg, effectivement il y a bien le
# Joystick event string for stopping the emulator Joy Mapping Stop = « J0B8″
Le bouton B doit donc bien faire sortir. Du coup, quel fichier (mupen64plus.cfg ou inputAuto.cfg) dois-je modifier ? Vu que j'ai remplacé mon inputAuto.cfg par celui qui fonctionnait au départ, j'imagine que je dois éditer mupen64plus.cfg (à moin qu'il s'agisse d'un fichier auquel je ne devrais pas toucher). Et une fois que je sais lequel modifier, qu'est-ce que je dois y mettre ? En tout cas merci pour tout Acris !
-
Bonjour celui ci tu dois modifier pour faire sortir de l emulateur tu dois configurer la touche ou mettre en commentaire la ligne pour la désactiver
mupen64plus.cfg
# Joystick event string for stopping the emulator Joy Mapping Stop = "J0B8"
-
Nickel ! Avec la mise en commentaire, ça fonctionne Bon, du coup je suppose que je ne pourrai plus quitter le jeu, mais je m'y ferai volontiers Merci mille fois Acris !
-
Bonjour tu n'as pas essayé avec le clavier et la touche esc si ça fonctionnait de nouveau ?
-
Bonjour Acris, Non j'avoue ne pas avoir essayé. Mais à vrai dire je n'ai pas encore été amené à vouloir quitter un jeu de n64 pour retourner sur emulstation, vu que j'ai des problèmes de freeze au bout de quelques minutes de jeu sur n64 en ce moment. J'ai changé ma carte SD (qui était une Transcend) pour un Sandisk 32go. Ça persiste, donc je suis sûr que ça vient de l'alim, qui ne m'a pas l'air terrible du tout. Mais je n'avais jamais eu ce problème avant (à l'époque où la n64 ne considérait pas encore le B comme un bouton de sortie). J'arrivais à jouer à Mkart64 pendant 2h sans souci. Alors que là... Arrivé à la 3ème course du grand prix, je me mange un gros freeze. (j'ai vu qu'il était question d'overclocking sur certains topics, mais je n'ai jamais eu recours à ce genre de manipulation) Du coup, je vais changer l'alim pour prendre une bonne alim bien réputée (d'ailleurs, si tu peux m'en conseiller une, je suis preneur :D) avant de songer à en parler sur un topic approprié. Le seul problème que je rencontre en rapport avec la manette est que le mupen64plus.cfg se remet tout le temps à jour à chaque démarrage. Je dois tout le temps lui remettre le ' Joy Mapping Stop = "J0B8" ' en commentaire (serait-ce justement parce que l'émulateur ne s'éteint pas normalement ?). Ce n'est pas bloquant, juste un peu dérangeant. Je tenterai quand même avec le ESC du clavier, y a pas de raison que ça ne marche pas ! Merci encore pour tout Acris !