Last active
February 17, 2021 23:38
-
-
Save Lauszus/ed794097b4eb9b312bc2 to your computer and use it in GitHub Desktop.
RetroPie configurations for PS3 & PS4 controller
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
# /opt/retropie/configs/n64/InputAutoCfg.ini | |
# See: https://github.com/mupen64plus/mupen64plus-input-sdl/blob/master/data/InputAutoCfg.ini | |
[PLAYSTATION(R)3 Controller] | |
[Sony PLAYSTATION(R)3 Controller] | |
[SHENGHIC 2009/0708ZXW-V1Inc. PLAYSTATION(R)3Conteroller] | |
plugged = True | |
plugin = 2 | |
mouse = False | |
AnalogDeadzone = 4096,4096 | |
AnalogPeak = 32768,32768 | |
DPad R = button(5) | |
DPad L = button(7) | |
DPad D = button(6) | |
DPad U = button(4) | |
Start = button(3) | |
Z Trig = button(10) | |
B Button = button(15) | |
A Button = button(14) | |
C Button R = axis(2+) | |
C Button L = axis(2-) | |
C Button D = axis(3+) | |
C Button U = axis(3-) | |
R Trig = button(11) | |
L Trig = button(8) | |
Mempak switch = | |
Rumblepak switch = | |
X Axis = axis(0-,0+) | |
Y Axis = axis(1-,1+) | |
[Sony Computer Entertainment Wireless Controller] | |
plugged = True | |
plugin = 2 | |
mouse = False | |
AnalogDeadzone = 4096,4096 | |
AnalogPeak = 32768,32768 | |
DPad R = hat(0 Right) | |
DPad L = hat(0 Left) | |
DPad D = hat(0 Down) | |
DPad U = hat(0 Up) | |
Start = button(9) | |
Z Trig = axis(3+) | |
B Button = button(0) | |
A Button = button(1) | |
C Button R = axis(2+) | |
C Button L = axis(2-) | |
C Button D = axis(5+) | |
C Button U = axis(5-) | |
R Trig = button(5) | |
L Trig = button(4) | |
Mempak switch = | |
Rumblepak switch = | |
X Axis = axis(0-,0+) | |
Y Axis = axis(1-,1+) |
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
# /opt/retropie/configs/all/retroarch-joypads/Sony-PlayStation3-DualShock3-Controller-Bluetooth.cfg | |
# Source: https://github.com/libretro/retroarch-joypad-autoconfig/blob/master/udev/Sony-PlayStation3-DualShock3-Controller-Bluetooth.cfg | |
input_device = "PLAYSTATION(R)3 Controller" | |
input_driver = "udev" | |
input_vendor_id = 1356 | |
input_product_id = 616 | |
input_b_btn = "14" | |
input_y_btn = "15" | |
input_select_btn = "0" | |
input_start_btn = "3" | |
input_up_btn = "4" | |
input_down_btn = "6" | |
input_left_btn = "7" | |
input_right_btn = "5" | |
input_a_btn = "13" | |
input_x_btn = "12" | |
input_l_btn = "10" | |
input_r_btn = "11" | |
input_l2_btn = "8" | |
input_r2_btn = "9" | |
input_l3_btn = "1" | |
input_r3_btn = "2" | |
input_l_x_plus_axis = "+0" | |
input_l_x_minus_axis = "-0" | |
input_l_y_plus_axis = "+1" | |
input_l_y_minus_axis = "-1" | |
input_r_x_plus_axis = "+2" | |
input_r_x_minus_axis = "-2" | |
input_r_y_plus_axis = "+3" | |
input_r_y_minus_axis = "-3" | |
input_menu_toggle_btn = "16" | |
input_b_btn_label = "Cross" | |
input_y_btn_label = "Square" | |
input_select_btn_label = "Select" | |
input_start_btn_label = "Start" | |
input_up_btn_label = "D-Pad Up" | |
input_down_btn_label = "D-Pad Down" | |
input_left_btn_label = "D-Pad Left" | |
input_right_btn_label = "D-Pad Right" | |
input_a_btn_label = "Circle" | |
input_x_btn_label = "Triangle" | |
input_l_btn_label = "L1" | |
input_r_btn_label = "R1" | |
input_l2_btn_label = "L2" | |
input_r2_btn_label = "R2" | |
input_l3_btn_label = "L3" | |
input_r3_btn_label = "R3" | |
input_l_x_plus_axis_label = "Left Analog Right" | |
input_l_x_minus_axis_label = "Left Analog Left" | |
input_l_y_plus_axis_label = "Left Analog Down" | |
input_l_y_minus_axis_label = "Left Analog Up" | |
input_r_x_plus_axis_label = "Right Analog Right" | |
input_r_x_minus_axis_label = "Right Analog Left" | |
input_r_y_plus_axis_label = "Right Analog Down" | |
input_r_y_minus_axis_label = "Right Analog Up" | |
input_menu_toggle_btn_label = "PS" | |
# Added so it works with with Mupen64Plus: https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/emulators/mupen64plus/mupen64plus.sh | |
# Check using: | |
# $ cat /opt/retropie/configs/n64/mupen64plus.cfg | grep 'Joy Mapping Stop\|Joy Mapping Load State\|Joy Mapping Save State' | |
input_exit_emulator_btn = "3" | |
input_save_state_btn = "11" | |
input_load_state_btn = "10" | |
input_enable_hotkey_btn = "0" |
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
# /opt/retropie/configs/all/retroarch-joypads/Sony-PlayStation3-DualShock3-Controller-USB.cfg | |
# Source: https://github.com/libretro/retroarch-joypad-autoconfig/blob/master/udev/Sony-PlayStation3-DualShock3-Controller-USB.cfg | |
input_device = "Sony PLAYSTATION(R)3 Controller" | |
input_driver = "udev" | |
input_vendor_id = 1356 | |
input_product_id = 616 | |
input_b_btn = "14" | |
input_y_btn = "15" | |
input_select_btn = "0" | |
input_start_btn = "3" | |
input_up_btn = "4" | |
input_down_btn = "6" | |
input_left_btn = "7" | |
input_right_btn = "5" | |
input_a_btn = "13" | |
input_x_btn = "12" | |
input_l_btn = "10" | |
input_r_btn = "11" | |
input_l2_btn = "8" | |
input_r2_btn = "9" | |
input_l3_btn = "1" | |
input_r3_btn = "2" | |
input_l_x_plus_axis = "+0" | |
input_l_x_minus_axis = "-0" | |
input_l_y_plus_axis = "+1" | |
input_l_y_minus_axis = "-1" | |
input_r_x_plus_axis = "+2" | |
input_r_x_minus_axis = "-2" | |
input_r_y_plus_axis = "+3" | |
input_r_y_minus_axis = "-3" | |
input_menu_toggle_btn = "16" | |
input_b_btn_label = "Cross" | |
input_y_btn_label = "Square" | |
input_select_btn_label = "Select" | |
input_start_btn_label = "Start" | |
input_up_btn_label = "D-Pad Up" | |
input_down_btn_label = "D-Pad Down" | |
input_left_btn_label = "D-Pad Left" | |
input_right_btn_label = "D-Pad Right" | |
input_a_btn_label = "Circle" | |
input_x_btn_label = "Triangle" | |
input_l_btn_label = "L1" | |
input_r_btn_label = "R1" | |
input_l2_btn_label = "L2" | |
input_r2_btn_label = "R2" | |
input_l3_btn_label = "L3" | |
input_r3_btn_label = "R3" | |
input_l_x_plus_axis_label = "Left Analog Right" | |
input_l_x_minus_axis_label = "Left Analog Left" | |
input_l_y_plus_axis_label = "Left Analog Down" | |
input_l_y_minus_axis_label = "Left Analog Up" | |
input_r_x_plus_axis_label = "Right Analog Right" | |
input_r_x_minus_axis_label = "Right Analog Left" | |
input_r_y_plus_axis_label = "Right Analog Down" | |
input_r_y_minus_axis_label = "Right Analog Up" | |
input_menu_toggle_btn_label = "PS" | |
# Added so it works with with Mupen64Plus: https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/emulators/mupen64plus/mupen64plus.sh | |
# Check using: | |
# $ cat /opt/retropie/configs/n64/mupen64plus.cfg | grep 'Joy Mapping Stop\|Joy Mapping Load State\|Joy Mapping Save State' | |
input_exit_emulator_btn = "3" | |
input_save_state_btn = "11" | |
input_load_state_btn = "10" | |
input_enable_hotkey_btn = "0" |
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
# /opt/retropie/configs/all/retroarch-joypads/Sony-PlayStation4-DualShock4-Controller.cfg | |
# Source: https://raw.githubusercontent.com/libretro/retroarch-joypad-autoconfig/master/udev/Sony-PlayStation4-DualShock4-Controller.cfg | |
input_device = "Sony Computer Entertainment Wireless Controller" | |
input_driver = "udev" | |
input_vendor_id = 1356 | |
input_product_id = 1476 | |
input_b_btn = "1" | |
input_y_btn = "0" | |
input_select_btn = "8" | |
input_start_btn = "9" | |
input_up_btn = "h0up" | |
input_down_btn = "h0down" | |
input_left_btn = "h0left" | |
input_right_btn = "h0right" | |
input_a_btn = "2" | |
input_x_btn = "3" | |
input_l_btn = "4" | |
input_r_btn = "5" | |
input_l2_btn = "6" | |
input_r2_btn = "7" | |
input_l3_btn = "10" | |
input_r3_btn = "11" | |
input_l_x_plus_axis = "+0" | |
input_l_x_minus_axis = "-0" | |
input_l_y_plus_axis = "+1" | |
input_l_y_minus_axis = "-1" | |
input_r_x_plus_axis = "+2" | |
input_r_x_minus_axis = "-2" | |
input_r_y_plus_axis = "+5" | |
input_r_y_minus_axis = "-5" | |
input_menu_toggle_btn = "12" | |
input_b_btn_label = "Cross" | |
input_y_btn_label = "Square" | |
input_select_btn_label = "Share" | |
input_start_btn_label = "Options" | |
input_up_btn_label = "D-Pad Up" | |
input_down_btn_label = "D-Pad Down" | |
input_left_btn_label = "D-Pad Left" | |
input_right_btn_label = "D-Pad Right" | |
input_a_btn_label = "Circle" | |
input_x_btn_label = "Triangle" | |
input_l_btn_label = "L1" | |
input_r_btn_label = "R1" | |
input_l2_btn_label = "L2" | |
input_r2_btn_label = "R2" | |
input_l3_btn_label = "L3" | |
input_r3_btn_label = "R3" | |
input_l_x_plus_axis_label = "Left Analog Right" | |
input_l_x_minus_axis_label = "Left Analog Left" | |
input_l_y_plus_axis_label = "Left Analog Down" | |
input_l_y_minus_axis_label = "Left Analog Up" | |
input_r_x_plus_axis_label = "Right Analog Right" | |
input_r_x_minus_axis_label = "Right Analog Left" | |
input_r_y_plus_axis_label = "Right Analog Down" | |
input_r_y_minus_axis_label = "Right Analog Up" | |
input_menu_toggle_btn_label = "PS" | |
# Added so it works with with Mupen64Plus: https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/emulators/mupen64plus/mupen64plus.sh | |
# Check using: | |
# $ cat /opt/retropie/configs/n64/mupen64plus.cfg | grep 'Joy Mapping Stop\|Joy Mapping Load State\|Joy Mapping Save State' | |
input_exit_emulator_btn = "9" | |
input_save_state_btn = "5" | |
input_load_state_btn = "4" | |
input_enable_hotkey_btn = "8" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!