Note: You CANNOT change the key mappings for Player 2. This is a limitation of the current implementation of MiSTer, as it expects each player to have a unique device. A J-PAC/I-PAC etc is treated as a single keyboard, so it is impossible to map each side separately.
Prerequisites:
- MiSTer needs to be updated to the latest using the updater script, or manually updating to MiSTer_20200608 or later.
- The VID/PID of your J-PAC/I-PAC (or similar) device
- A USB keyboard to drive the UI initially
- Plug in your J-PAC/I-PAC into the DE-10 Nano
- Plug in your USB keyboard into the DE-10 Nano
- Turn on your MiSTer device
- From the initial Cores menu, using the USB keyboard, press F12 to bring up the System Settings menu
- With the USB keyboard, select "Define joystick buttons" and press Enter
- Press Right on the Player 1 joystick that is connected to your PAC device
- The "Define buttons" UI will display "Joystick ID: XXXX:YYYY" where XXXX is your VID and YYYY is your PID
- Example: Joystick ID: d209:0301 - Write those values down and shut down your MiSTer device
- Move your MicroSD card to your computer
- Open your MiSTer.ini file (or download the latest from https://github.com/MiSTer-devel/Main_Mi ... MiSTer.ini)
- If your MiSTer.ini file has the following variables already defined, please rename them:
- jammasd_vid (rename to jamma_vid)
- jammasd_pid (rename to jamma_pid) - If your MiSTer.ini file does not have jamma_vid and jamma_pid variables, please add the following:
Code: Select all
; JammaSD/J-PAC/I-PAC keys to joysticks translation ; You have to provide correct VID and PID of your input device ; Examples: Legacy J-PAC with Mini-USB or USB capable I-PAC with PS/2 connectors VID=0xD209/PID=0x0301 ; USB Capable J-PAC with only PS/2 connectors VID=0x04B4/PID=0x0101 ; JammaSD: VID=0x04D8/PID=0xF3AD jamma_vid=0x04D8 jamma_pid=0xF3AD
- Now you need to change the jamma_vid and jamma_pid values to match what the MiSTer "Define buttons" UI told you the VID/PID were for your PAC device above.
- Example:
- jamma_vid=0xD209
- jamma_pid=0x0301 - Save the changes and place the MicroSD card back in your MiSTer device
- Turn on your MiSTer device
- From the initial Cores menu, using the USB keyboard, press F12 to bring up the System Settings menu
- With the USB keyboard, select "Define joystick buttons" and press Enter
- Press Right on the Player 1 joystick that is connected to your PAC device
- Walk through mapping your Player 1 joystick and buttons
- For Select, I hold P1 Start and Press Left
- Press Space on the USB keyboard for any keys you do not need (such as mouse buttons)
- For the Menu 2-button combo, for now I hold P1 Start and Press Right. P1 Start + P2 Start unfortunately causes the "Define buttons" menu to go away (presses ESC), cancelling the configuration
- Map "Menu OK" and "Menu Back" buttons so you will be able to drive the MiSTer OSD
- When you have mapped and skipped all keys, you will wind up back at the System Settings menu. You should now be able to control the OSD with your P1 Joystick and Buttons
I hope you find this useful. This has allowed me to use my J-PAC on my Capcom Impress candy cabinet unmodified using the J-PAC with kick buttons wired from the kick harness to the J-PAC B4-6 on each player.