-
-
Save dudleydes/dae86816bcc504ff6ee8e0451e09ef36 to your computer and use it in GitHub Desktop.
jzIntv mapping for wired PS3 Controller using xboxdrv (RetroPie)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Keyboard Hack File for PS3 controller | |
; ------------------------------------- | |
; The D-pad right, up and left will input number keys 1 to 3 respectively. Pressing these with L1 will number keys 4 to 6 respectively and with R1 number keys 7 to 9. | |
; Upon release of L1 or R1, the D-pad right, up and left will revert to number keys 1 to 3. | |
; ------------ | |
MAP 0 | |
; ------------ | |
; Game interface | |
JS0_BTN_00 QUIT ; Select | |
JS0_BTN_16 RESET ; PS Button | |
JS0_BTN_08 PAUSE ; L2 | |
; Keymap | |
JS0_BTN_10 SHF10 ; L1 Shift to map 1 on press, map 0 on release | |
JS0_BTN_11 SHF20 ; R1 Shift to map 2 on press, map 0 on release | |
; Keypad | |
JS0_BTN_07 PD0L_KP1 ; Key 1 mapped to D-pad left | |
JS0_BTN_04 PD0L_KP2 ; Key 2 mapped to D-pad up | |
JS0_BTN_05 PD0L_KP3 ; Key 3 mapped to D-pad right | |
JS0_BTN_03 PD0L_KPE ; Enter key mapped to Start | |
JS0_BTN_06 PD0L_KP0 ; Key 0 mapped to D-pad down | |
JS0_BTN_12 PD0L_KPC ; Clear key mapped to Triangle | |
; Action Side Button | |
JS0_BTN_14 PD0L_A_T ; Top Action Button mapped to Cross | |
JS0_BTN_15 PD0L_A_L ; Left Bottom Action Button mapped to Square | |
JS0_BTN_13 PD0L_A_R ; Right Bottom Action Button mapped toCircle | |
; ------------ | |
MAP 1 | |
; ------------ | |
; Keymap | |
JS0_BTN_10 SHF10 ; L1 Shift to map 1 on press, map 0 on release | |
JS0_BTN_11 SHF20 ; R1 Shift to map 2 on press, map 0 on release | |
JS0_BTN_07 PD0L_KP4 ; Key 4 mapped to L1 + D-pad left | |
JS0_BTN_04 PD0L_KP5 ; Key 5 mapped to L1 + D-pad up | |
JS0_BTN_05 PD0L_KP6 ; Key 6 mapped to L1 + D-pad right | |
; ------------ | |
MAP 2 | |
; ------------ | |
; Keymap | |
JS0_BTN_10 SHF10 ; L1 Shift to map 1 on press, map 0 on release | |
JS0_BTN_11 SHF20 ; R1 Shift to map 2 on press, map 0 on release | |
JS0_BTN_07 PD0L_KP7 ; Key 7 mapped to R1 + D-pad left | |
JS0_BTN_04 PD0L_KP8 ; Key 8 mapped to R1 + D-pad up | |
JS0_BTN_05 PD0L_KP9 ; Key 9 mapped to R1 + D-pad right |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jzintv = "/opt/retropie/emulators/jzintv/bin/jzintv -p /home/pi/RetroPie/BIOS -q %ROM%" | |
jzintv-arcade = "/opt/retropie/emulators/jzintv/bin/jzintv -p /home/pi/RetroPie/BIOS -q --kbdhackfile=/home/pi/RetroPie/roms/intellivision/Arcade.kbd %ROM%" | |
jzintv-xboxdrv = "sudo /opt/retropie/supplementary/xboxdrv/bin/xboxdrv --config /opt/retropie/configs/xboxdrv/intellivision.xboxdrv >/dev/null & /opt/retropie/emulators/jzintv/bin/jzintv -p /home/pi/RetroPie/BIOS -q --kbdhackfile=/home/pi/RetroPie/roms/intellivision/hackfile.kbd %ROM%; sudo killall >/dev/null xboxdrv" | |
jzintv-specific = "/home/pi/RetroPie/roms/intellivision/jzintv.sh %ROM%" | |
default = "jzintv-arcade" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAP 0 | |
; Game interface | |
JS1_BTN_06 QUIT ; Select | |
JS1_BTN_08 RESET ; PS button | |
JS1_BTN_04 PAUSE ; L1 | |
; Keypad | |
JS1_BTN_10 PD0L_KP5 ; Key 5 mapped to R3 | |
JS1_BTN_07 PD0L_KPE ; Enter key mapped to Start | |
JS1_BTN_09 PD0L_KP0 ; Key 0 mapped to L3 | |
JS1_BTN_03 PD0L_KPC ; Clear key mapped to Triangle | |
JS1_BTN_00 PD0L_A_T ; Top Action button mapped to Cross | |
JS1_BTN_02 PD0L_A_L ; Bottom left Action button mapped to Square | |
JS1_BTN_01 PD0L_A_R ; Bottom Right Action button mapped to Circle | |
; Hat ; Keypad 1 to 9 (except 5) mapped to right analog stick | |
JS1_HAT0_NW PD0L_KP1 | |
JS1_HAT0_N PD0L_KP2 | |
JS1_HAT0_NE PD0L_KP3 | |
JS1_HAT0_W PD0L_KP4 | |
JS1_HAT0_E PD0L_KP6 | |
JS1_HAT0_SW PD0L_KP7 | |
JS1_HAT0_S PD0L_KP8 | |
JS1_HAT0_SE PD0L_KP9 | |
; Joystick ; Disc mapped to left analog stick | |
JS1_E PD0L_J_E | |
JS1_ENE PD0L_J_ENE | |
JS1_NE PD0L_J_NE | |
JS1_NNE PD0L_J_NNE | |
JS1_N PD0L_J_N | |
JS1_NNW PD0L_J_NNW | |
JS1_NW PD0L_J_NW | |
JS1_WNW PD0L_J_WNW | |
JS1_W PD0L_J_W | |
JS1_WSW PD0L_J_WSW | |
JS1_SW PD0L_J_SW | |
JS1_SSW PD0L_J_SSW | |
JS1_S PD0L_J_S | |
JS1_SSE PD0L_J_SSE | |
JS1_SE PD0L_J_SE | |
JS1_ESE PD0L_J_ESE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jzIntv configuration for wired PS3 controller | |
# ============================================= | |
# | |
# This configuration file is for use with jzIntv, the Intellivision emulator. | |
# By default, jzIntv maps the first joystick's first hat's 8 directions to the numeric keypad on the right controller. | |
# The config swaps the D-pad (hat) axes with the right analog stick axes in the [evdev-absmap] section. | |
# Used with keyboard hack file, hackfile.kbd, the right analog stick can be used to input numeric keys 1 to 9. | |
[xboxdrv] | |
evdev = /dev/input/by-id/usb-Sony_PLAYSTATION_R_3_Controller-event-joystick | |
silent = true | |
detach-kernel-driver = true | |
deadzone-trigger = 15% | |
deadzone = 4000 | |
mimic-xpad = true | |
[evdev-absmap] | |
ABS_X = x1 | |
ABS_Y = y1 | |
ABS_Z = DPAD_X | |
ABS_RZ = DPAD_Y | |
ABS_HAT0X = x2 | |
ABS_HAT0Y = y2 | |
[evdev-keymap] | |
KEY_#302 = a | |
KEY_#301 = b | |
BTN_DEAD = x | |
KEY_#300 = y | |
BTN_THUMB = tl | |
BTN_THUMB2 = tr | |
BTN_BASE5 = lb | |
BTN_BASE6 = rb | |
BTN_TRIGGER = back | |
KEY_#704 = guide | |
BTN_TOP = start | |
[axismap] | |
-y1 = y1 | |
-y2 = y2 | |
[calibration] | |
x1 = -32767:0:32767 | |
y1 = -32767:0:32767 | |
x2 = -32767:0:32767 | |
y2 = -32767:0:32767 | |
# EOF # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to launch Intellivision games in jzIntv with bespoke keyboard hackfiles. The hackfile must named the same as rom, including extension, with .kbd added. | |
params="$1" | |
/opt/retropie/emulators/jzintv/bin/jzintv -p /home/pi/RetroPie/BIOS -q -v1 --kbdhackfile="$params".kbd "$params" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Keyboard Hack File for PS3 controller for Night Stalker | |
; ------------------------------------------------------- | |
; This keyboard hack file works for the rom "Night Stalker (1982) (Mattel).int" and the jzintv.sh script. Rename the hack file to match name of rom if different. | |
; | |
; The D-pad right, up and left will input number keys 1 to 3 respectively. Pressing these with L1 will number keys 4 to 6 respectively and with R1 number keys 7 to 9. | |
; Upon release of L1 or R1, the D-pad right, up and left will revert to number keys 1 to 3. | |
;------- | |
MAP 0 | |
;------- | |
; Game interface | |
JS0_BTN_00 QUIT ; Select | |
JS0_BTN_16 RESET ; PS Button | |
JS0_BTN_08 PAUSE ; L2 | |
; Shooting | |
; Mapped to right controller so it's possible to move and shoot at the same time | |
JS0_BTN_12 PD0R_KP2 ; Shoot up mapped to Triangle | |
JS0_BTN_13 PD0R_KP6 ; Shoot right mapped to Circle | |
JS0_BTN_14 PD0R_KP8 ; Shoot down mapped to Cross | |
JS0_BTN_15 PD0R_KP4 ; Shoot left mapped to Square |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment