Skip to content

Commit

Permalink
Merge branch 'libretro:master' into patch-60
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhedlund authored Oct 3, 2024
2 parents 0ef7f6d + 26cf799 commit 83b6577
Show file tree
Hide file tree
Showing 14 changed files with 345 additions and 271 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
58 changes: 33 additions & 25 deletions android/8BitDo_Pro2_updatedFW.cfg → android/8BitDo_Pro2.cfg
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand All @@ -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"
69 changes: 0 additions & 69 deletions android/8BitDo_Pro2_BT.cfg

This file was deleted.

69 changes: 0 additions & 69 deletions android/8BitDo_Pro2_USB.cfg

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand All @@ -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+"
Expand Down
15 changes: 1 addition & 14 deletions android/Pro Controller.cfg
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
55 changes: 0 additions & 55 deletions android/Xbox 360 Wireless Adapter.cfg

This file was deleted.

Loading

0 comments on commit 83b6577

Please sign in to comment.