From d3ecf77d4eeb2abf22067976775f8c2777021a91 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Fri, 13 Sep 2024 03:06:13 +0200 Subject: [PATCH 1/3] Update and rename Microsoft_X-Box_pad_v2_US.cfg to Microsoft X-Box pad (US).cfg https://github.com/libretro/RetroArch/pull/16990 --- ..._X-Box_pad_v2_US.cfg => Microsoft X-Box pad (US).cfg} | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) rename udev/{Microsoft_X-Box_pad_v2_US.cfg => Microsoft X-Box pad (US).cfg} (85%) diff --git a/udev/Microsoft_X-Box_pad_v2_US.cfg b/udev/Microsoft X-Box pad (US).cfg similarity index 85% rename from udev/Microsoft_X-Box_pad_v2_US.cfg rename to udev/Microsoft X-Box pad (US).cfg index 6299816cf..3545367bf 100644 --- a/udev/Microsoft_X-Box_pad_v2_US.cfg +++ b/udev/Microsoft X-Box pad (US).cfg @@ -1,12 +1,10 @@ input_driver = "udev" input_device = "Microsoft X-Box pad v2 (US)" -input_device_display_name = "Xbox Controller" - -# Hex vid:pid is found using "dmesg -w" or "tail -f /var/log/syslog" and converted to Decimal using http://www.binaryhexconverter.com/hex-to-decimal-converter -# Hex vid:pid = 045e:0289 -> Decimal vid:pid = 1118:649 +input_device_display_name = "Xbox Controller (v2)" +input_device_alt1 = "Microsoft X-Box pad v1 (US)" +input_device_display_name_alt1 = "Xbox Controller (v1)" input_vendor_id = "1118" input_product_id = "649" - input_b_btn = "0" input_y_btn = "3" input_select_btn = "6" @@ -31,7 +29,6 @@ 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_b_btn_label = "A" input_y_btn_label = "X" input_select_btn_label = "Back" From cc1d2dccba36ea72e4528b11a79a308b0965e92c Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Fri, 13 Sep 2024 03:08:26 +0200 Subject: [PATCH 2/3] Delete udev/Microsoft_X-Box_pad_v1_US.cfg Merged v1 and v2 https://github.com/libretro/RetroArch/pull/16990 --- udev/Microsoft_X-Box_pad_v1_US.cfg | 58 ------------------------------ 1 file changed, 58 deletions(-) delete mode 100644 udev/Microsoft_X-Box_pad_v1_US.cfg diff --git a/udev/Microsoft_X-Box_pad_v1_US.cfg b/udev/Microsoft_X-Box_pad_v1_US.cfg deleted file mode 100644 index 27b6b673e..000000000 --- a/udev/Microsoft_X-Box_pad_v1_US.cfg +++ /dev/null @@ -1,58 +0,0 @@ -input_driver = "udev" -input_device = "Microsoft X-Box pad v1 (US)" -input_device_display_name = "Xbox Controller" - -# Hex vid:pid is found using "dmesg -w" or "tail -f /var/log/syslog" and converted to Decimal using http://www.binaryhexconverter.com/hex-to-decimal-converter -# Hex vid:pid = 045e:0202 -> Decimal vid:pid = 1118:514 -input_vendor_id = "1118" -input_product_id = "514" - -input_b_btn = "0" -input_y_btn = "3" -input_select_btn = "6" -input_start_btn = "7" -input_up_btn = "h0up" -input_down_btn = "h0down" -input_left_btn = "h0left" -input_right_btn = "h0right" -input_a_btn = "1" -input_x_btn = "4" -input_l_btn = "5" -input_r_btn = "2" -input_l2_axis = "+2" -input_r2_axis = "+5" -input_l3_btn = "8" -input_r3_btn = "9" -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_b_btn_label = "A" -input_y_btn_label = "X" -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 = "B" -input_x_btn_label = "Y" -input_l_btn_label = "White" -input_r_btn_label = "Black" -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 Stick Right" -input_l_x_minus_axis_label = "Left Stick Left" -input_l_y_plus_axis_label = "Left Stick Down" -input_l_y_minus_axis_label = "Left Stick Up" -input_r_x_plus_axis_label = "Right Stick Right" -input_r_x_minus_axis_label = "Right Stick Left" -input_r_y_plus_axis_label = "Right Stick Down" -input_r_y_minus_axis_label = "Right Stick Up" From b61ca5f9fd4b2d10d445918c9e9931139c4b5417 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Fri, 20 Sep 2024 14:23:31 +0200 Subject: [PATCH 3/3] Update Microsoft X-Box pad (US).cfg Added: input_vendor_id_al1 = "1118" input_product_id_alt1 = "514" Thanks Rob: https://github.com/libretro/retroarch-joypad-autoconfig/pull/1191#discussion_r1762261197 --- udev/Microsoft X-Box pad (US).cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/udev/Microsoft X-Box pad (US).cfg b/udev/Microsoft X-Box pad (US).cfg index 3545367bf..e0b94c781 100644 --- a/udev/Microsoft X-Box pad (US).cfg +++ b/udev/Microsoft X-Box pad (US).cfg @@ -1,10 +1,12 @@ input_driver = "udev" input_device = "Microsoft X-Box pad v2 (US)" input_device_display_name = "Xbox Controller (v2)" -input_device_alt1 = "Microsoft X-Box pad v1 (US)" -input_device_display_name_alt1 = "Xbox Controller (v1)" input_vendor_id = "1118" input_product_id = "649" +input_device_alt1 = "Microsoft X-Box pad v1 (US)" +input_device_display_name_alt1 = "Xbox Controller (v1)" +input_vendor_id_al1 = "1118" +input_product_id_alt1 = "514" input_b_btn = "0" input_y_btn = "3" input_select_btn = "6"