Setup & Operation

Setup & Operation

Introduction

Out of the box, the JVS-PAC 2 behaves like a keyboard, suitable for use with MAME without any user configuration. In other words, if you have a working MAME setup, you can simply connect the JVS-PAC 2 and things should work.

Setup and configuration

Connect the cabinet’s JVS I/O board to the JVS-PAC 2, and the JVS-PAC 2 to your computer or console using a data-capable USB cable. Power off before connecting or reseating JVS cables.

Press B to move through the OLED menus, and A to change a setting. Choose SAVE CONFIG to keep your settings on the microSD card, and wait for it to finish before powering off.

The USB mode menu lets you choose Keyboard, XInput, Switch or PS3. Keyboard uses the mappings below. XInput provides two gamepads and supports analog controls. Switch and PS3 each provide two digital controllers, without keyboard, mouse or analog output.

Changes between Keyboard and XInput take effect immediately. Changing to, from, or between Switch and PS3 requires SAVE+REBOOT. Menus for analog and rotary controls appear when suitable hardware is connected; analog also requires XInput mode.

Controlling MAME and MiSTer – shift mode

In MAME, to quit games, control volume, pause a game etc, you would normally use a keyboard. The JVS-PAC 2 makes this easy by having the 1P Start button work a little differently. Choose Off, Mame ESC, Mame Full, Mister Core or Mister Full in the OLED menu. Shift mode works with both Keyboard and XInput output.

No shift mode

If you don’t want the shift key functionality, choose Off.

Mame ESC – exit games only

This is the default shift mode. Hold 1P Start for more than two seconds, then release it to send ESC and exit the game. A normal tap sends the key configured for 1P Start on release.

Mame Full

Mame Full adds the shortcuts below to the long-press ESC function. Activate by pressing and holding 1P Start, then one of the inputs below. Using a shortcut cancels the long-press action.

InputKeyboard
Player 1 leftEnter
Player 1 rightTab – enter MAME menu
Player 1 upGrave (`) – adjustments in MAME
Player 1 downp – pause MAME
Player 1 button 15 – increase credit
Player 1 button 2INS – speed up MAME
Player 1 button 3F2 – MAME test key

MiSTer shift modes

Mister Core lets you open core selection by holding 1P Start for more than two seconds, then releasing it. This sends Alt+F12. Mister Full adds the shortcuts below, plus volume up and down on Player 1 up and down. Hold 1P Start, then use the input. Using a shortcut cancels the long-press action.

InputKeyboard
Player 1 leftEnter
Player 1 rightF12 – MiSTer menu

Default Keyboard Mapping

This section details the keys sent in Keyboard mode, based on cabinet input. The mapping is tailored for use with MAME. Coin slots 3 and 4 send 7 and 8, and the tilt input sends T.

Cabinet related

Cabinet InputKeyboard
credit increase slot 15
credit increase slot 26
player 1 service button9
player 2 service button0
test buttonF2

Player input

 Player 1Player 2Player 3Player 4
Start1*234
Leftleft keydiKeypad 4
Rightright keygkKeypad 6
Upup keyrjKeypad 8
Downdown keyflKeypad 2
Button 1left CTRLaright CTRLKeypad 0
Button 2left ALTsright SHIFTKeypad comma
Button 3space keyqEnterKeypad enter
Button 4left SHIFTw  
Button 5ze  
Button 6xk  
Button 7cj  
Button 8vl  

*) If a shift mode is enabled, a normal tap on 1P Start sends “1” on release.
Player 3 and 4 require either a Capcom I/O in four-player mode or a linked setup. Four-player output uses Keyboard mode.

Changing keyboard layout

If you have special needs, or want to wire up an extra button for non-game use, you can change the keyboard mapping by editing jvspac2.ini, generated when saving the configuration. Power off before removing the card. Edit the entries under [keyboard], safely eject the card, then put it back and power on.

For example, M_P1B1=KEY_Z assigns player 1 button 1 to Z. Use KEY_NONE to disable an input’s keyboard output. Shift shortcuts remain fixed. The following keys are available, along with KEY_VOLUMEUP, KEY_VOLUMEDOWN and KEY_MUTE:

KEY_NONEKEY_MKEY_3KEY_RIGHTBRACEKEY_F7KEY_LEFTKEY_KP8 KEY_KPCOMMA 
 KEY_NKEY_4KEY_BACKSLASHKEY_F8KEY_DOWNKEY_KP9KEY_LEFTCTRL
 KEY_OKEY_5KEY_HASHTILDEKEY_F9KEY_UPKEY_KP0KEY_LEFTSHIFT
 KEY_PKEY_6KEY_SEMICOLONKEY_F10KEY_NUMLOCKKEY_KPDOTKEY_LEFTALT
KEY_AKEY_QKEY_7KEY_APOSTROPHEKEY_F11KEY_KPSLASH KEY_LEFTMETA 
KEY_BKEY_RKEY_8KEY_GRAVEKEY_F12KEY_KPASTERISKKEY_COMPOSEKEY_RIGHTCTRL
KEY_CKEY_SKEY_9KEY_COMMAKEY_SYSRQKEY_KPMINUSKEY_POWERKEY_RIGHTSHIFT
KEY_DKEY_TKEY_0KEY_DOTKEY_SCROLLLOCKKEY_KPPLUSKEY_KPEQUALKEY_RIGHTALT
KEY_EKEY_UKEY_ENTERKEY_SLASHKEY_PAUSEKEY_KPENTERKEY_F13KEY_RIGHTMETA
KEY_FKEY_VKEY_ESCKEY_CAPSLOCKKEY_INSERTKEY_KP1KEY_F14 
KEY_GKEY_WKEY_BACKSPACEKEY_F1KEY_HOMEKEY_KP2 KEY_F15 
KEY_HKEY_XKEY_TABKEY_F2KEY_PAGEUPKEY_KP3KEY_F16 
KEY_IKEY_YKEY_SPACEKEY_F3KEY_DELETEKEY_KP4 KEY_F17 
KEY_JKEY_ZKEY_MINUSKEY_F4KEY_ENDKEY_KP5 KEY_F18 
KEY_KKEY_1KEY_EQUALKEY_F5KEY_PAGEDOWNKEY_KP6 KEY_F19 
KEY_LKEY_2KEY_LEFTBRACEKEY_F6KEY_RIGHTKEY_KP7 KEY_F20 

Last Updated on 2026-10-16 by admin