Mapping keyboard controls in lr-mupen64plus (N64 emulator)
-
I'm thoroughly confused about how to set up controls in lr-mupen64plus (N64) emulator.
I have a picade which maps the joystick and all the buttons to keyboard presses, so insert coin sends a "c", P1 start an "s" etc.
As far as I can see from the documentation, I need to set the controls in mupen64plus manually.
In opt/retropie/configs/n64 there are a few files, from what I have read, I need to edit InputAutoCfg.ini.
The contents of this file appear to map the functions to specific keys, but the keys are referenced as key(100), key(99) etc. How do I know what the key number is for the "c" key for example?
I read that jstest will show what key codes are generated for a joystick but it seems to think I don't have a joystick connected (presumably because my joystick simulates keyboard key presses)
I'm running retropie 4.3 on a Pi3 in a picade cabinet.
At present all the N64 roms I've tried start up and run fine, but no button or joystick presses do anything. The only thing that works is pressing hot key and select to exit the emulator.
Thanks for any suggestions. -
@gtbfilms You are a bit confused. If you are using the
lr
RetroArch core this is not the correct file. This file is for the standalonemupen64plus
emulator.
Can I ask why you are not using the standalone version? It runs a LOT better than the libretro core. -
Here are the SDL codes anyway. I had them to hand.
## SDL KEY CODES ## Note: the key codes are for SDL based applications. These are not the same codes as returned by 'showkeys' for linux console. Power - 0 This key is useless to map in your applications, the NanoNote will automatically turn off when this key is pressed. It shares a keycode with the Qi-button. #Function Keys F1 - 282 F2 - 283 F3 - 284 F4 - 285 F5 - 286 F6 - 287 F7 - 288 F8 - 289 F9 - 290 F10 - 291 #Top keyboard row Q - 113 W - 119 E - 101 R - 114 T - 116 Y - 121 U - 117 I - 105 O - 111 P - 112 #Second keyboard row A - 97 S - 115 D - 100 F - 102 G - 103 H - 104 J - 106 K - 107 L - 108 Backspace - 8 #Third keyboard row Escape - 27 Z - 122 X - 120 C - 99 V - 118 B - 98 N - 110 M - 109 Equals - 61 Enter/Return - 13 #Fourth keyboard row Tab - 9 Caps Lock - 301 Backslash - 92 Apostrophe - 180 Comma - 44 Period - 46 Slash - 47 #Bottom keyboard row Shift - 304 Alt - 308 Function-Key - 306 Altgr - 307 Space - 32 Qi-button - 0 Control - 305 #Arrow keys and Volume keys Up - 273 Down - 274 Left - 276 Right - 275 Volume Up - 292 Volume Down - 293
-
@jonnykesh no particular reason! I will take your advice and try the standalone one instead!
-
@jonnykesh awesome, thankyou!
-
@gtbfilms Give it a go. There are a few variations that can be confusing, I personally use
mupen64plus-gles2n64
Others usemupen64plus-gles2rice
and the others but these seem to be the most popular. And I use video mode CEA-4 1280x720 @60Hz.These should give an indication (roughly) of how it looks.
-
Thanks for that, I've tried the standalone and they work fine with no tinkering. I'm trying the high resolution one as default but it looks like I'll probably need to set alternatives for some roms, as they're a bit sluggish. Mario Kart 64 looks and plays really well though!
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.