diff --git a/README.md b/README.md index c1f1b16fc..33f5f0c68 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ The autoconfig files included in this repository are used to recognize input dev If your input device is not recognized by RetroArch even after updating the controller profiles, then you can generate a new profile for it from RetroArch itself. -You can find detailed instructions to do this in the [official website](https://www.retroarch.com/index.php?page=controller-autoconfig). +You can find detailed instructions to do this in our [Joypad Auto Configuration](https://docs.libretro.com/guides/controller-autoconfiguration/) guide. Please **always run `Settings` -> `Input` -> `RetroPad Binds` -> `Port 1 Controls` -> `Save Controller Profile`** in order to generate correct autoconfig file name, and file content (including `input_device`). Also, only modify existing autoconfig files with data from `Save Controller Profile` generated autoconfig files, with other words, do not autoconfig files for controllers that you don't own. diff --git a/android/8BitDo_Pro2_updatedFW.cfg b/android/8BitDo_Pro2.cfg similarity index 68% rename from android/8BitDo_Pro2_updatedFW.cfg rename to android/8BitDo_Pro2.cfg index 2e451160b..1c913c604 100644 --- a/android/8BitDo_Pro2_updatedFW.cfg +++ b/android/8BitDo_Pro2.cfg @@ -1,37 +1,46 @@ # 8BitDo Pro 2 - https://www.8bitdo.com/ - https://www.8bitdo.com/pro2/ # Firmware v1.05 - https://support.8bitdo.com/ - https://support.8bitdo.com/firmware-updater.html # This is with the device started in Android (D-Input) mode. -# Note: in updated firmware the USB and Bluetooth modes have the same PID. input_driver = "android" input_device = "8BitDo Pro 2" +# on USB, input_device = "8BitDo 8BitDo Pro 2". See below. input_device_display_name = "8BitDo Pro 2" - # Hex vid:pid and Decimal vid:pid is shown in the "log_verbosity" window, enable "log_verbosity" in retroarch.cfg and run RetroArch. # Hex vid:pid = 2DC8:6006 -> Decimal vid:pid = 11720:24582 - input_vendor_id = "11720" input_product_id = "24582" -input_a_btn = "96" +# Firmware before v1.05 has different PID depending on connection type. +input_device_alt1 = "8BitDo Pro 2" +input_device_display_name_alt1 = "8BitDo Pro 2 (old firmware, Bluetooth)" +# Hex vid:pid = 2DC8:6103 -> Decimal vid:pid = 11720:24835 +input_vendor_id_alt1 = "11720" +input_product_id_alt1 = "24835" + +# on USB, Android prepends the vendor to the product name, so 8BitDo twice. +input_device_alt2 = "8BitDo 8BitDo Pro 2" +input_device_display_name_alt2 = "8BitDo Pro 2 (old firmware, USB)" +# Hex vid:pid = 2DC8:6003 -> Decimal vid:pid = 11720:24579 +input_vendor_id_alt2 = "11720" +input_product_id_alt2 = "24579" + input_b_btn = "97" -input_x_btn = "99" input_y_btn = "100" -input_start_btn = "108" input_select_btn = "109" -input_menu_toggle_btn = "110" -input_l_btn = "102" -input_r_btn = "103" -input_l2_axis = "+8" -input_r2_axis = "+9" -input_l3_btn = "106" -input_r3_btn = "107" - +input_start_btn = "108" input_up_btn = "h0up" input_down_btn = "h0down" input_left_btn = "h0left" input_right_btn = "h0right" - +input_a_btn = "96" +input_x_btn = "99" +input_l_btn = "102" +input_r_btn = "103" +input_l2_axis = "+6" +input_r2_axis = "+7" +input_l3_btn = "106" +input_r3_btn = "107" input_l_x_plus_axis = "+0" input_l_x_minus_axis = "-0" input_l_y_plus_axis = "+1" @@ -40,26 +49,24 @@ 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 = "110" -input_a_btn_label = "A" input_b_btn_label = "B" -input_x_btn_label = "X" input_y_btn_label = "Y" -input_start_btn_label = "Start" input_select_btn_label = "Select" -input_menu_toggle_btn_label = "Home" +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 = "A" +input_x_btn_label = "X" input_l_btn_label = "L" input_r_btn_label = "R" input_l2_axis_label = "L2" input_r2_axis_label = "R2" input_l3_btn_label = "LS" input_r3_btn_label = "RS" - -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_l_x_plus_axis_label = "LS Right" input_l_x_minus_axis_label = "LS Left" input_l_y_plus_axis_label = "LS Down" @@ -68,3 +75,4 @@ input_r_x_plus_axis_label = "RS Right" input_r_x_minus_axis_label = "RS Left" input_r_y_plus_axis_label = "RS Down" input_r_y_minus_axis_label = "RS Up" +input_menu_toggle_btn_label = "Home" diff --git a/android/8BitDo_Pro2_BT.cfg b/android/8BitDo_Pro2_BT.cfg deleted file mode 100644 index 8390f24d9..000000000 --- a/android/8BitDo_Pro2_BT.cfg +++ /dev/null @@ -1,69 +0,0 @@ -# 8BitDo Pro 2 - https://www.8bitdo.com/ - https://www.8bitdo.com/pro2/ -# Firmware v1.00 - https://support.8bitdo.com/ - https://support.8bitdo.com/firmware-updater.html -# This is with the device started in Android (D-Input) mode. - -input_driver = "android" -input_device = "8BitDo Pro 2" -input_device_display_name = "8BitDo Pro 2" - -# Hex vid:pid abd Decimal vid:pid is shown in the "log_verbosity" window, enable "log_verbosity" in retroarch.cfg and run RetroArch. -# Hex vid:pid = 2DC8:6103 -> Decimal vid:pid = 11720:24835 - -input_vendor_id = "11720" -input_product_id = "24835" - -input_b_btn = "97" -input_y_btn = "100" -input_select_btn = "109" -input_start_btn = "108" -input_a_btn = "96" -input_x_btn = "99" -input_l_btn = "102" -input_r_btn = "103" -input_l2_btn = "104" -input_r2_btn = "105" -input_l3_btn = "106" -input_r3_btn = "107" -input_menu_toggle_btn = "110" - -input_up_btn = "h0up" -input_down_btn = "h0down" -input_left_btn = "h0left" -input_right_btn = "h0right" - -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_b_btn_label = "B" -input_y_btn_label = "Y" -input_select_btn_label = "Select" -input_start_btn_label = "Start" -input_a_btn_label = "A" -input_x_btn_label = "X" -input_l_btn_label = "L1" -input_r_btn_label = "R1" -input_l2_btn_label = "L2" -input_r2_btn_label = "R2" -input_l3_btn_label = "LS" -input_r3_btn_label = "RS" -input_menu_toggle_btn_label = "Home" - -input_up_btn_label = "Dpad Up" -input_down_btn_label = "Dpad Down" -input_left_btn_label = "Dpad Left" -input_right_btn_label = "Dpad Right" - -input_l_x_plus_axis_label = "LS Right" -input_l_x_minus_axis_label = "LS Left" -input_l_y_plus_axis_label = "LS Down" -input_l_y_minus_axis_label = "LS Up" -input_r_x_plus_axis_label = "RS Right" -input_r_x_minus_axis_label = "RS Left" -input_r_y_plus_axis_label = "RS Down" -input_r_y_minus_axis_label = "RS Up" diff --git a/android/8BitDo_Pro2_USB.cfg b/android/8BitDo_Pro2_USB.cfg deleted file mode 100644 index f3a1e396d..000000000 --- a/android/8BitDo_Pro2_USB.cfg +++ /dev/null @@ -1,69 +0,0 @@ -# 8BitDo Pro 2 - https://www.8bitdo.com/ - https://www.8bitdo.com/pro2/ -# Firmware v1.00 - https://support.8bitdo.com/ - https://support.8bitdo.com/firmware-updater.html -# This is with the device started in Android (D-Input) mode. - -input_driver = "android" -input_device = "8BitDo Pro 2" -input_device_display_name = "8BitDo Pro 2" - -# Hex vid:pid abd Decimal vid:pid is shown in the "log_verbosity" window, enable "log_verbosity" in retroarch.cfg and run RetroArch. -# Hex vid:pid = 2DC8:6003 -> Decimal vid:pid = 11720:24579 - -input_vendor_id = "11720" -input_product_id = "24579" - -input_b_btn = "97" -input_y_btn = "100" -input_select_btn = "109" -input_start_btn = "108" -input_a_btn = "96" -input_x_btn = "99" -input_l_btn = "102" -input_r_btn = "103" -input_l2_btn = "104" -input_r2_btn = "105" -input_l3_btn = "106" -input_r3_btn = "107" -input_menu_toggle_btn = "110" - -input_up_btn = "h0up" -input_down_btn = "h0down" -input_left_btn = "h0left" -input_right_btn = "h0right" - -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_b_btn_label = "B" -input_y_btn_label = "Y" -input_select_btn_label = "Select" -input_start_btn_label = "Start" -input_a_btn_label = "A" -input_x_btn_label = "X" -input_l_btn_label = "L1" -input_r_btn_label = "R1" -input_l2_btn_label = "L2" -input_r2_btn_label = "R2" -input_l3_btn_label = "LS" -input_r3_btn_label = "RS" -input_menu_toggle_btn_label = "Home" - -input_up_btn_label = "Dpad Up" -input_down_btn_label = "Dpad Down" -input_left_btn_label = "Dpad Left" -input_right_btn_label = "Dpad Right" - -input_l_x_plus_axis_label = "LS Right" -input_l_x_minus_axis_label = "LS Left" -input_l_y_plus_axis_label = "LS Down" -input_l_y_minus_axis_label = "LS Up" -input_r_x_plus_axis_label = "RS Right" -input_r_x_minus_axis_label = "RS Left" -input_r_y_plus_axis_label = "RS Down" -input_r_y_minus_axis_label = "RS Up" diff --git a/android/Microsoft_XBOX_360_Controller_USB.cfg b/android/Microsoft_XBOX_360_Controller.cfg similarity index 85% rename from android/Microsoft_XBOX_360_Controller_USB.cfg rename to android/Microsoft_XBOX_360_Controller.cfg index 2d0f55678..afd9f2653 100644 --- a/android/Microsoft_XBOX_360_Controller_USB.cfg +++ b/android/Microsoft_XBOX_360_Controller.cfg @@ -1,12 +1,18 @@ input_driver = "android" + input_device = "Microsoft X-Box 360 pad" input_device_display_name = "Xbox 360 Controller" input_vendor_id = "1118" input_product_id = "654" +input_device_alt1 = "Xbox 360 Wireless Adapter" +input_device_display_name_alt1 = "Xbox 360 Wireless Controller" +input_vendor_id_alt1 = "1118" +input_product_id_alt1 = "1817" + input_b_btn = "96" input_y_btn = "99" -input_select_btn = "4" +input_select_btn = "109" input_start_btn = "108" input_up_btn = "h0up" input_down_btn = "h0down" @@ -20,6 +26,7 @@ input_l2_axis = "+6" input_r2_axis = "+7" input_l3_btn = "106" input_r3_btn = "107" +input_menu_toggle_btn = "110" input_l_x_plus_axis = "+0" input_l_x_minus_axis = "-0" input_l_y_plus_axis = "+1" @@ -45,6 +52,7 @@ input_l2_axis_label = "Left Trigger" input_r2_axis_label = "Right Trigger" input_l3_btn_label = "Left Stick" input_r3_btn_label = "Right Stick" +input_menu_toggle_btn_label = "Guide" input_l_x_plus_axis_label = "Left Analog X+" input_l_x_minus_axis_label = "Left Analog X-" input_l_y_plus_axis_label = "Left Analog Y+" diff --git a/android/Pro Controller.cfg b/android/Pro Controller.cfg index 2032e07c2..f57f6fe60 100644 --- a/android/Pro Controller.cfg +++ b/android/Pro Controller.cfg @@ -1,17 +1,4 @@ -# Nintendo Switch Pro Controller (with nintendo-hid) -# -# Requires Android 12 or later. -# -# This is the first fully working Android autoconfig -# for Nintendo Switch Pro Controller as far as I know -# -# Disclaimer: -# The Nintendo Switch Pro Controller has other binding -# for earliers Android versions. However, the Bluetooth -# connectivity issue in Android 11 and earlier makes the -# controller useless for gaming. -# -# Evaluated by David Hedlund. +# Nintendo Switch Pro Controller for nintendo-hid input_driver = "android" input_device = "Pro Controller" diff --git a/android/Xbox 360 Wireless Adapter.cfg b/android/Xbox 360 Wireless Adapter.cfg deleted file mode 100644 index c9954f2a9..000000000 --- a/android/Xbox 360 Wireless Adapter.cfg +++ /dev/null @@ -1,55 +0,0 @@ -input_driver = "android" -input_device = "Xbox 360 Wireless Adapter" -input_device_display_name = "Xbox 360 Wireless Controller" -input_vendor_id = "1118" -input_product_id = "1817" - -input_b_btn = "97" -input_y_btn = "100" -input_select_btn = "109" -input_start_btn = "108" -input_up_btn = "h0up" -input_down_btn = "h0down" -input_left_btn = "h0left" -input_right_btn = "h0right" -input_a_btn = "96" -input_x_btn = "99" -input_l_btn = "102" -input_r_btn = "103" -input_l2_axis = "+6" -input_r2_axis = "+7" -input_l3_btn = "106" -input_r3_btn = "107" -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_b_btn_label = "B" -input_y_btn_label = "Y" -input_select_btn_label = "Back" -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 = "A" -input_x_btn_label = "X" -input_l_btn_label = "Left Bumper" -input_r_btn_label = "Right Bumper" -input_l2_axis_label = "Left Trigger" -input_r2_axis_label = "Right Trigger" -input_l3_btn_label = "Left Stick" -input_r3_btn_label = "Right Stick" -input_l_x_plus_axis_label = "Left Analog X+" -input_l_x_minus_axis_label = "Left Analog X-" -input_l_y_plus_axis_label = "Left Analog Y+" -input_l_y_minus_axis_label = "Left Analog Y-" -input_r_x_plus_axis_label = "Right Analog X+" -input_r_x_minus_axis_label = "Right Analog X-" -input_r_y_plus_axis_label = "Right Analog Y+" -input_r_y_minus_axis_label = "Right Analog Y-" diff --git a/dinput/Mayflash_Wiimote_PC_Adapter.cfg b/dinput/Mayflash_Wiimote_PC_Adapter.cfg new file mode 100644 index 000000000..c342e3159 --- /dev/null +++ b/dinput/Mayflash_Wiimote_PC_Adapter.cfg @@ -0,0 +1,59 @@ +input_driver = "dinput" +input_device = "Mayflash Wiimote PC Adapter" +input_device_display_name = "Mayflash Wiimote PC Adapter, Mode 3 with Nunchuck" +input_vendor_id = "121" +input_product_id = "6147" + +input_a_btn = "3" +input_b_btn = "2" +input_x_btn = "0" +input_y_btn = "1" + +input_select_btn = "4" +input_start_btn = "5" + +input_up_btn = "h0up" +input_down_btn = "h0down" +input_left_btn = "h0left" +input_right_btn = "h0right" + +input_l_btn = "7" +input_l2_btn = "6" + +input_l_x_plus_axis = "+2" +input_l_x_minus_axis = "-2" +input_l_y_plus_axis = "+5" +input_l_y_minus_axis = "-5" +input_r_x_plus_axis = "+0" +input_r_x_minus_axis = "-0" +input_r_y_plus_axis = "+1" +input_r_y_minus_axis = "-1" + +input_menu_toggle_btn = "11" + +input_a_btn_label = "B" +input_b_btn_label = "A" +input_x_btn_label = "1" +input_y_btn_label = "2" + +input_select_btn_label = "-" +input_start_btn_label = "+" + +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_l_btn_label = "C" +input_l2_btn_label = "Z" + +input_l_x_plus_axis_label = "IR X+" +input_l_x_minus_axis_label = "IR X-" +input_l_y_plus_axis_label = "IR Y+" +input_l_y_minus_axis_label = "IR Y-" +input_r_x_plus_axis_label = "Analog X+" +input_r_x_minus_axis_label = "Analog X-" +input_r_y_plus_axis_label = "Analog Y+" +input_r_y_minus_axis_label = "Analog Y-" +input_menu_toggle_btn_label = "Home" diff --git a/linuxraw/Nintendo Switch Pro Controller.cfg b/linuxraw/Nintendo Switch Pro Controller.cfg new file mode 100644 index 000000000..ea380b104 --- /dev/null +++ b/linuxraw/Nintendo Switch Pro Controller.cfg @@ -0,0 +1,56 @@ +input_driver = "linuxraw" +input_device = "Nintendo Switch Pro Controller" +input_device_alt1 = "Nintendo Co., Ltd. Pro Controller" +input_device_alt3 = "Pro Controller" +input_b_btn = "0" +input_y_btn = "3" +input_select_btn = "9" +input_start_btn = "10" +input_up_axis = "-5" +input_down_axis = "+5" +input_left_axis = "-4" +input_right_axis = "+4" +input_a_btn = "1" +input_x_btn = "2" +input_l_btn = "5" +input_r_btn = "6" +input_l2_btn = "7" +input_r2_btn = "8" +input_l3_btn = "12" +input_r3_btn = "13" +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 = "11" +input_screenshot_btn = "4" +input_b_btn_label = "B" +input_y_btn_label = "Y" +input_select_btn_label = "Minus" +input_start_btn_label = "Plus" +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 = "A" +input_x_btn_label = "X" +input_l_btn_label = "L" +input_r_btn_label = "R" +input_l2_btn_label = "ZL" +input_r2_btn_label = "ZR" +input_l3_btn_label = "Left Stick Press" +input_r3_btn_label = "Right Stick Press" +input_l_x_plus_axis_label = "Left Analog X+ (Right)" +input_l_x_minus_axis_label = "Left Analog X- (Left)" +input_l_y_plus_axis_label = "Left Analog Y+ (Down)" +input_l_y_minus_axis_label = "Left Analog Y- (Up)" +input_r_x_plus_axis_label = "Right Analog X+ (Right)" +input_r_x_minus_axis_label = "Right Analog X- (Left)" +input_r_y_plus_axis_label = "Right Analog Y+ (Down)" +input_r_y_minus_axis_label = "Right Analog Y- (Up)" +input_menu_toggle_btn_label = "Home" +input_screenshot_btn_label = "Screenshot" diff --git a/linuxraw/Sony DualShock 4 Controller.cfg b/linuxraw/Sony DualShock 4 Controller.cfg new file mode 100644 index 000000000..0f7424e0f --- /dev/null +++ b/linuxraw/Sony DualShock 4 Controller.cfg @@ -0,0 +1,57 @@ +input_driver = "linuxraw" +input_device = "Sony Interactive Entertainment Wireless Controller" +input_device_display_name = "Sony Interactive Entertainment Wireless Controller (DualShock 4 v2)" +input_device_alt1 = "Wireless Controller" +input_device_display_name_alt1 = "Wireless Controller (DualShock 4 v2)" +input_device_alt2 = "Sony Computer Entertainment Wireless Controller" +input_device_display_name_alt2 = "Sony Computer Entertainment Wireless (DualShock 4 v1)" +input_b_btn = "0" +input_y_btn = "3" +input_select_btn = "8" +input_start_btn = "9" +input_up_axis = "-7" +input_down_axis = "+7" +input_left_axis = "-6" +input_right_axis = "+6" +input_a_btn = "1" +input_x_btn = "2" +input_l_btn = "4" +input_r_btn = "5" +input_l2_axis = "+2" +input_r2_axis = "+5" +input_l3_btn = "11" +input_r3_btn = "12" +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 = "+3" +input_r_x_minus_axis = "-3" +input_r_y_plus_axis = "+4" +input_r_y_minus_axis = "-4" +input_menu_toggle_btn = "10" +input_b_btn_label = "Cross" +input_y_btn_label = "Square" +input_select_btn_label = "Create" +input_start_btn_label = "Options" +input_a_btn_label = "Circle" +input_x_btn_label = "Triangle" +input_l_btn_label = "L1" +input_r_btn_label = "R1" +input_l2_axis_label = "L2 Trigger" +input_r2_axis_label = "R2 Trigger" +input_l3_btn_label = "L3" +input_r3_btn_label = "R3" +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_l_x_plus_axis_label = "Left Analog X+ (Right)" +input_l_x_minus_axis_label = "Left Analog X- (Left)" +input_l_y_plus_axis_label = "Left Analog Y+ (Down)" +input_l_y_minus_axis_label = "Left Analog Y- (Up)" +input_r_x_plus_axis_label = "Right Analog X+ (Right)" +input_r_x_minus_axis_label = "Right Analog X- (Left)" +input_r_y_plus_axis_label = "Right Analog Y+ (Up)" +input_r_y_minus_axis_label = "Right Analog Y- (Up)" +input_menu_toggle_btn_label = "PS" diff --git a/linuxraw/Sony Interactive Entertainment DualSense Wireless Controller.cfg b/linuxraw/Sony Interactive Entertainment DualSense Wireless Controller.cfg new file mode 100644 index 000000000..a46789dc5 --- /dev/null +++ b/linuxraw/Sony Interactive Entertainment DualSense Wireless Controller.cfg @@ -0,0 +1,53 @@ +input_driver = "linuxraw" +input_device = "Sony Interactive Entertainment DualSense Wireless Controller" +input_device_alt1 = "DualSense Wireless Controller" +input_b_btn = "0" +input_y_btn = "3" +input_select_btn = "8" +input_start_btn = "9" +input_up_axis = "-7" +input_down_axis = "+7" +input_left_axis = "-6" +input_right_axis = "+6" +input_a_btn = "1" +input_x_btn = "2" +input_l_btn = "4" +input_r_btn = "5" +input_l2_axis = "+2" +input_r2_axis = "+5" +input_l3_btn = "11" +input_r3_btn = "12" +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 = "+3" +input_r_x_minus_axis = "-3" +input_r_y_plus_axis = "+4" +input_r_y_minus_axis = "-4" +input_menu_toggle_btn = "10" +input_b_btn_label = "Cross" +input_y_btn_label = "Square" +input_select_btn_label = "Create" +input_start_btn_label = "Options" +input_a_btn_label = "Circle" +input_x_btn_label = "Triangle" +input_l_btn_label = "L1" +input_r_btn_label = "R1" +input_l2_axis_label = "L2 Trigger" +input_r2_axis_label = "R2 Trigger" +input_l3_btn_label = "L3" +input_r3_btn_label = "R3" +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_l_x_plus_axis_label = "Left Analog X+ (Right)" +input_l_x_minus_axis_label = "Left Analog X- (Left)" +input_l_y_plus_axis_label = "Left Analog Y+ (Down)" +input_l_y_minus_axis_label = "Left Analog Y- (Up)" +input_r_x_plus_axis_label = "Right Analog X+ (Right)" +input_r_x_minus_axis_label = "Right Analog X- (Left)" +input_r_y_plus_axis_label = "Right Analog Y+ (Up)" +input_r_y_minus_axis_label = "Right Analog Y- (Up)" +input_menu_toggle_btn_label = "PS" diff --git a/linuxraw/Sony Interactive Entertainment Wireless Controller.cfg b/linuxraw/Sony Interactive Entertainment Wireless Controller.cfg deleted file mode 100644 index 5941f7b0d..000000000 --- a/linuxraw/Sony Interactive Entertainment Wireless Controller.cfg +++ /dev/null @@ -1,26 +0,0 @@ -input_driver = "linuxraw" -input_device = "Sony Interactive Entertainment Wireless Controller" -input_b_btn = "0" -input_y_btn = "3" -input_select_btn = "8" -input_start_btn = "9" -input_up_axis = "-7" -input_down_axis = "+7" -input_left_axis = "-6" -input_right_axis = "+6" -input_a_btn = "1" -input_x_btn = "2" -input_l_btn = "4" -input_r_btn = "5" -input_l2_btn = "6" -input_r2_btn = "7" -input_l3_btn = "11" -input_r3_btn = "12" -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 = "+3" -input_r_x_minus_axis = "-3" -input_r_y_plus_axis = "+4" -input_r_y_minus_axis = "-4" diff --git a/sdl2/PS5 Controller.cfg b/sdl2/PS5 Controller.cfg index f75862a9f..0512d94b2 100644 --- a/sdl2/PS5 Controller.cfg +++ b/sdl2/PS5 Controller.cfg @@ -1,9 +1,8 @@ input_driver = "sdl2" input_device = "PS5 Controller" -input_device_display_name = "DualSense" +input_device_display_name = "PS5 Controller (DualSense)" input_vendor_id = "1356" input_product_id = "3302" - input_b_btn = "0" input_y_btn = "2" input_select_btn = "4" @@ -16,12 +15,6 @@ input_a_btn = "1" input_x_btn = "3" input_l_btn = "9" input_r_btn = "10" -# Note 2024-07-08 : -# See https://github.com/libretro/RetroArch/issues/6920 -# RetroArch's in-app feature to create autoconfig files is flawed and will attempt to create the 2 lines : -# input_l2_btn = "6" -# input_r2_btn = "7" -# Those 2 lines are a downgrade from the 2 following lines which additionally allow l2/r2 to be polled as analog axes : input_l2_axis = "+4" input_r2_axis = "+5" input_l3_btn = "7" @@ -35,7 +28,6 @@ input_r_x_minus_axis = "-2" input_r_y_plus_axis = "+3" input_r_y_minus_axis = "-3" input_menu_toggle_btn = "5" - input_b_btn_label = "Cross" input_y_btn_label = "Square" input_select_btn_label = "Create" @@ -48,8 +40,8 @@ input_a_btn_label = "Circle" input_x_btn_label = "Triangle" input_l_btn_label = "L1" input_r_btn_label = "R1" -input_l2_axis_label = "L2" -input_r2_axis_label = "R2" +input_l2_axis_label = "L2 Trigger" +input_r2_axis_label = "R2 Trigger" input_l3_btn_label = "L3" input_r3_btn_label = "R3" input_l_x_plus_axis_label = "Left Analog X+" diff --git a/udev/8BitDo_Ultimate_2C_Wireless_Controller.cfg b/udev/8BitDo_Ultimate_2C_Wireless_Controller.cfg new file mode 100644 index 000000000..396055631 --- /dev/null +++ b/udev/8BitDo_Ultimate_2C_Wireless_Controller.cfg @@ -0,0 +1,73 @@ +# 8BitDo Ultimate 2C Wireless Controller +# https://www.8bitdo.com/ - https://www.8bitdo.com/ultimate-2c-wireless-controller/ +# https://support.8bitdo.com/ - https://support.8bitdo.com/firmware-updater.html +# +# The remap and turbo button cannot be mapped. + +input_driver = "udev" +input_device = "8BitDo 8BitDo Ultimate 2C Wireless Controller" +input_device_display_name = "8BitDo Ultimate 2C Wireless Controller" + +# 2dc8:310a +input_vendor_id = "11720" +input_product_id = "12554" + +input_up_btn = "h0up" +input_down_btn = "h0down" +input_left_btn = "h0left" +input_right_btn = "h0right" + +input_a_btn = "1" +input_b_btn = "0" +input_x_btn = "3" +input_y_btn = "2" + +input_select_btn = "6" +input_start_btn = "7" +input_menu_toggle_btn = "8" + +input_l_btn = "4" +input_r_btn = "5" +input_l2_axis = "+2" +input_r2_axis = "+5" +input_l3_btn = "9" +input_r3_btn = "10" + +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 = "+3" +input_r_x_minus_axis = "-3" +input_r_y_plus_axis = "+4" +input_r_y_minus_axis = "-4" + +input_up_btn_label = "Dpad Up" +input_down_btn_label = "Dpad Down" +input_left_btn_label = "Dpad Left" +input_right_btn_label = "Dpad Right" + +input_b_btn_label = "A" +input_a_btn_label = "B" +input_y_btn_label = "X" +input_x_btn_label = "Y" + +input_select_btn_label = "View (Minus)" +input_start_btn_label = "Menu (Plus)" +input_menu_toggle_btn_label = "Home" + +input_l_btn_label = "LB" +input_r_btn_label = "RB" +input_l2_axis_label = "LT" +input_r2_axis_label = "RT" +input_l3_btn_label = "LSB" +input_r3_btn_label = "RSB" + +input_l_x_plus_axis_label = "LS Right" +input_l_x_minus_axis_label = "LS Left" +input_l_y_plus_axis_label = "LS Down" +input_l_y_minus_axis_label = "LS Up" +input_r_x_plus_axis_label = "RS Right" +input_r_x_minus_axis_label = "RS Left" +input_r_y_plus_axis_label = "RS Down" +input_r_y_minus_axis_label = "RS Up"