From 1db02f2554f0c15ce79e88c51a67e3aa151884f4 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Thu, 1 Aug 2024 07:17:39 +0200 Subject: [PATCH 01/16] Update and rename Nintendo Switch Pro Controller (old).cfg to Pro Controller (default-off).cfg --- sdl2/Nintendo Switch Pro Controller (old).cfg | 67 ----------------- sdl2/Pro Controller (default-off).cfg | 74 +++++++++++++++++++ 2 files changed, 74 insertions(+), 67 deletions(-) delete mode 100644 sdl2/Nintendo Switch Pro Controller (old).cfg create mode 100644 sdl2/Pro Controller (default-off).cfg diff --git a/sdl2/Nintendo Switch Pro Controller (old).cfg b/sdl2/Nintendo Switch Pro Controller (old).cfg deleted file mode 100644 index 3612a39d2..000000000 --- a/sdl2/Nintendo Switch Pro Controller (old).cfg +++ /dev/null @@ -1,67 +0,0 @@ -# [This version is disabled by default to prevent conflict with the nintendo-hid version. Button layouts are not compatible.] -# Nintendo Switch Pro Controller (without nintendo-hid, bluetooth only) -# With nintendo-hid, various features such as vibration, gyro, and USB support are available. It appears this will be included in the Linux kernel beginning with version 5.16: -# "Pull HID updates from Jiri Kosina: -# -# - support for Nintendo Switch Pro Controllers and Joy-Cons (Daniel J. -# Ogorchock)" - https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16 -# -# The easiest solution for most users is to install the nintendo-hid DKMS module, available from https://github.com/nicman23/dkms-hid-nintendo/ - -input_driver = "sdl2" -input_device = "Nintendo Switch Pro Controller (old)" - -# input_vendor_id = "1406" -# input_product_id = "8201" - -input_b_btn = "0" -input_y_btn = "2" -input_select_btn = "4" -input_start_btn = "6" -input_up_btn = "11" -input_down_btn = "12" -input_left_btn = "13" -input_right_btn = "14" -input_a_btn = "1" -input_x_btn = "3" -input_l_btn = "9" -input_r_btn = "10" -input_l2_axis = "+4" -input_r2_axis = "+5" -input_l3_btn = "7" -input_r3_btn = "8" -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 = "5" - -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_axis_label = "ZL" -input_r2_axis_label = "ZR" -input_l3_btn_label = "AL" -input_r3_btn_label = "AR" -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-" -input_menu_toggle_btn_label = "Home" diff --git a/sdl2/Pro Controller (default-off).cfg b/sdl2/Pro Controller (default-off).cfg new file mode 100644 index 000000000..978298feb --- /dev/null +++ b/sdl2/Pro Controller (default-off).cfg @@ -0,0 +1,74 @@ +# This file uses the legacy controller name "Pro Controller" (generated by RetroArch on Linux 5.15) +# "(default-off)" was added to the file name to indicate that the autoconfig file is not active by default. See comments for input_vendor_id and input_product_id. +# +# Nintendo Switch Pro Controller (without nintendo-hid, bluetooth only) +# Without nintendo-hid, various features such as vibration, gyro, and USB support are unavailable. It appears this will be included in the Linux kernel beginning with version 5.16: +# "Pull HID updates from Jiri Kosina: +# +# - support for Nintendo Switch Pro Controllers and Joy-Cons (Daniel J. +# Ogorchock)" - https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16 +# +# The easiest solution for most users is to install the nintendo-hid DKMS module, available from https://github.com/nicman23/dkms-hid-nintendo/ +# Screenshot button (circle) is unbound in this autoconf, but has an ID of 13 + +input_driver = "sdl2" +input_device = "Pro Controller" +# Due to the uncommon nature of this device, the autoconfig file is not active by default. This precaution is taken to avoid potential conflicts with the widely-used Nintendo Switch Pro Controller (nintendo-hid version) file. Button layouts are not compatible. To activate this configuration: +# 1) Comment out the input_vendor_id and input_product_id lines in the "Nintendo Co.,Ltd. Pro Controller.cfg" file. +# 2) Uncomment the input_vendor_id and input_product_id lines below: +# input_vendor_id = "1406" +# input_product_id = "8201" + +input_b_btn = "0" +input_y_btn = "2" +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 = "1" +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 is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed. +input_r_x_plus_axis = "+2" +input_r_x_minus_axis = "-2" +input_r_y_plus_axis = "+3" +# input_r_y_minus_axis is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed. +input_r_y_minus_axis = "-3" +input_menu_toggle_btn = "12" + +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_axis_label = "ZL" +input_r2_axis_label = "ZR" +input_l3_btn_label = "AL" +input_r3_btn_label = "AR" +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-" +input_menu_toggle_btn_label = "Home" From 76ec839d41dee62efb23098407c9f110fb68e433 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Tue, 20 Aug 2024 10:18:35 +0200 Subject: [PATCH 02/16] Update Pro Controller (default-off).cfg # input_r_x_plus_axis is manually set here since RetroArch can't auto-detect it in Linux 5.15, but manual adjustments make it functional. --- sdl2/Pro Controller (default-off).cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl2/Pro Controller (default-off).cfg b/sdl2/Pro Controller (default-off).cfg index 978298feb..87a20958a 100644 --- a/sdl2/Pro Controller (default-off).cfg +++ b/sdl2/Pro Controller (default-off).cfg @@ -39,11 +39,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 is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed. +# input_r_x_plus_axis is manually set here since RetroArch can't auto-detect it in Linux 5.15, but manual adjustments make it functional. input_r_x_plus_axis = "+2" input_r_x_minus_axis = "-2" input_r_y_plus_axis = "+3" -# input_r_y_minus_axis is manually defined here as RetroArch cannot auto-detect it due to Linux driver limitations. This setting may function if a compatible driver has been manually installed. +# input_r_y_minus_axis is manually set here since RetroArch can't auto-detect it in Linux 5.15, but manual adjustments make it functional. input_r_y_minus_axis = "-3" input_menu_toggle_btn = "12" From ed80b03ef33c54e58636f96e147466e453af27fa Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Tue, 20 Aug 2024 10:34:40 +0200 Subject: [PATCH 03/16] Update Pro Controller (default-off).cfg # This autoconfig file was generated using RetroArch via the Flathub package. # Please refrain from updating it with an autoconfig created by the AppImage: The SDL2 controller driver utilizes UDEV rather than SDL2 - https://github.com/hizzlekizzle/RetroArch-AppImage/issues/12 --- sdl2/Pro Controller (default-off).cfg | 30 +++++++++++++++------------ 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/sdl2/Pro Controller (default-off).cfg b/sdl2/Pro Controller (default-off).cfg index 87a20958a..d37c44578 100644 --- a/sdl2/Pro Controller (default-off).cfg +++ b/sdl2/Pro Controller (default-off).cfg @@ -1,3 +1,6 @@ +# This autoconfig file was generated using RetroArch via the Flathub package. +# Please refrain from updating it with an autoconfig created by the AppImage: The SDL2 controller driver utilizes UDEV rather than SDL2 - https://github.com/hizzlekizzle/RetroArch-AppImage/issues/12 +# # This file uses the legacy controller name "Pro Controller" (generated by RetroArch on Linux 5.15) # "(default-off)" was added to the file name to indicate that the autoconfig file is not active by default. See comments for input_vendor_id and input_product_id. # @@ -21,20 +24,21 @@ input_device = "Pro Controller" input_b_btn = "0" input_y_btn = "2" -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_select_btn = "4" +input_start_btn = "6" +input_up_btn = "11" +input_down_btn = "12" +input_left_btn = "13" +input_right_btn = "14" input_a_btn = "1" 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_btn = "9" +input_r_btn = "10" +input_l2_axis = "+4" +input_r2_axis = "+5" +input_l3_btn = "7" +input_r3_btn = "8" +# input_l_x_plus_axis is manually set here since RetroArch can't auto-detect it in Linux 5.15, but manual adjustments make it functional. input_l_x_plus_axis = "+0" input_l_x_minus_axis = "-0" input_l_y_plus_axis = "+1" @@ -45,7 +49,7 @@ input_r_x_minus_axis = "-2" input_r_y_plus_axis = "+3" # input_r_y_minus_axis is manually set here since RetroArch can't auto-detect it in Linux 5.15, but manual adjustments make it functional. input_r_y_minus_axis = "-3" -input_menu_toggle_btn = "12" +input_menu_toggle_btn = "5" input_b_btn_label = "B" input_y_btn_label = "Y" From f9994d5040f85af4ece4569371450b77a3ab5173 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Tue, 20 Aug 2024 10:40:46 +0200 Subject: [PATCH 04/16] Update and rename Pro Controller (default-off).cfg to Nintendo Switch Pro Controller (default-off).cfg The SDL2 database uses the "Nintendo Switch Pro Controller." Previously, there was an incorrect name due to an issue: the SDL2 controller driver employs UDEV instead of SDL2 - https://github.com/hizzlekizzle/RetroArch-AppImage/issues/12 --- ...ff).cfg => Nintendo Switch Pro Controller (default-off).cfg} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename sdl2/{Pro Controller (default-off).cfg => Nintendo Switch Pro Controller (default-off).cfg} (98%) diff --git a/sdl2/Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg similarity index 98% rename from sdl2/Pro Controller (default-off).cfg rename to sdl2/Nintendo Switch Pro Controller (default-off).cfg index d37c44578..03abce5cd 100644 --- a/sdl2/Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -15,7 +15,7 @@ # Screenshot button (circle) is unbound in this autoconf, but has an ID of 13 input_driver = "sdl2" -input_device = "Pro Controller" +input_device = "Nintendo Switch Pro Controller" # Due to the uncommon nature of this device, the autoconfig file is not active by default. This precaution is taken to avoid potential conflicts with the widely-used Nintendo Switch Pro Controller (nintendo-hid version) file. Button layouts are not compatible. To activate this configuration: # 1) Comment out the input_vendor_id and input_product_id lines in the "Nintendo Co.,Ltd. Pro Controller.cfg" file. # 2) Uncomment the input_vendor_id and input_product_id lines below: From 270dc79d0218a75bd3d5040452d1d2094402869d Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Tue, 20 Aug 2024 10:45:15 +0200 Subject: [PATCH 05/16] Update Nintendo Switch Pro Controller (default-off).cfg # In this autoconfiguration, the screenshot button (circle) is unassigned, and no corresponding value could be identified for it. --- sdl2/Nintendo Switch Pro Controller (default-off).cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index 03abce5cd..c98b728e6 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -12,7 +12,7 @@ # Ogorchock)" - https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16 # # The easiest solution for most users is to install the nintendo-hid DKMS module, available from https://github.com/nicman23/dkms-hid-nintendo/ -# Screenshot button (circle) is unbound in this autoconf, but has an ID of 13 +# In this autoconfiguration, the screenshot button (circle) is unassigned, and no corresponding value could be identified for it. input_driver = "sdl2" input_device = "Nintendo Switch Pro Controller" From e9c4037bfc9ee247da5b61224fa0f9ef649a5057 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Wed, 21 Aug 2024 09:15:28 +0200 Subject: [PATCH 06/16] Update Nintendo Switch Pro Controller (default-off).cfg Nintendo Switch Pro Controller+Linux 5.15 (non-HID) does not register thumb sticks - https://github.com/libretro/RetroArch/issues/16905 --- sdl2/Nintendo Switch Pro Controller (default-off).cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index c98b728e6..a09802fe4 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -38,16 +38,16 @@ input_l2_axis = "+4" input_r2_axis = "+5" input_l3_btn = "7" input_r3_btn = "8" -# input_l_x_plus_axis is manually set here since RetroArch can't auto-detect it in Linux 5.15, but manual adjustments make it functional. +# input_l_x_plus_axis has manually been set here: Nintendo Switch Pro Controller+Linux 5.15 (non-HID) does not register thumb sticks - https://github.com/libretro/RetroArch/issues/16905 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 is manually set here since RetroArch can't auto-detect it in Linux 5.15, but manual adjustments make it functional. +# input_r_x_plus_axis has manually been set here: Nintendo Switch Pro Controller+Linux 5.15 (non-HID) does not register thumb sticks - https://github.com/libretro/RetroArch/issues/16905 input_r_x_plus_axis = "+2" input_r_x_minus_axis = "-2" input_r_y_plus_axis = "+3" -# input_r_y_minus_axis is manually set here since RetroArch can't auto-detect it in Linux 5.15, but manual adjustments make it functional. +# input_r_y_minus_axis has manually been set here: Nintendo Switch Pro Controller+Linux 5.15 (non-HID) does not register thumb sticks - https://github.com/libretro/RetroArch/issues/16905 input_r_y_minus_axis = "-3" input_menu_toggle_btn = "5" From c7e6b912df2b80cdd4dcdf7e05c19489359d4029 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Fri, 23 Aug 2024 15:29:08 +0200 Subject: [PATCH 07/16] Update Nintendo Switch Pro Controller (default-off).cfg input_device = "Nintendo Switch Pro Controller (Linux 5.15, non-HID)" --- sdl2/Nintendo Switch Pro Controller (default-off).cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index a09802fe4..6e5db7fd1 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -15,7 +15,7 @@ # In this autoconfiguration, the screenshot button (circle) is unassigned, and no corresponding value could be identified for it. input_driver = "sdl2" -input_device = "Nintendo Switch Pro Controller" +input_device = "Nintendo Switch Pro Controller (Linux 5.15, non-HID)" # Due to the uncommon nature of this device, the autoconfig file is not active by default. This precaution is taken to avoid potential conflicts with the widely-used Nintendo Switch Pro Controller (nintendo-hid version) file. Button layouts are not compatible. To activate this configuration: # 1) Comment out the input_vendor_id and input_product_id lines in the "Nintendo Co.,Ltd. Pro Controller.cfg" file. # 2) Uncomment the input_vendor_id and input_product_id lines below: From ca8e8979a1bf789afba9bc80c64b5ee145e25fa6 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Fri, 23 Aug 2024 15:42:45 +0200 Subject: [PATCH 08/16] Update Nintendo Switch Pro Controller (default-off).cfg input_device_display_name = "Nintendo Switch Pro Controller (Linux 5.15, non-HID)" --- sdl2/Nintendo Switch Pro Controller (default-off).cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index 6e5db7fd1..701d3ef8a 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -15,7 +15,8 @@ # In this autoconfiguration, the screenshot button (circle) is unassigned, and no corresponding value could be identified for it. input_driver = "sdl2" -input_device = "Nintendo Switch Pro Controller (Linux 5.15, non-HID)" +input_device = "Nintendo Switch Pro Controller" +input_device_display_name = "Nintendo Switch Pro Controller (Linux 5.15, non-HID)" # Due to the uncommon nature of this device, the autoconfig file is not active by default. This precaution is taken to avoid potential conflicts with the widely-used Nintendo Switch Pro Controller (nintendo-hid version) file. Button layouts are not compatible. To activate this configuration: # 1) Comment out the input_vendor_id and input_product_id lines in the "Nintendo Co.,Ltd. Pro Controller.cfg" file. # 2) Uncomment the input_vendor_id and input_product_id lines below: From 1e9942473c75cb7da2ae8c7a0b5fc44f679bccac Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Fri, 23 Aug 2024 16:18:31 +0200 Subject: [PATCH 09/16] Update Nintendo Switch Pro Controller (default-off).cfg Unnecessary input_device in autoconfig files generated by the android, and sdl2 controller drivers - https://github.com/libretro/RetroArch/issues/16920 --- sdl2/Nintendo Switch Pro Controller (default-off).cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index 701d3ef8a..d1569a1ea 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -15,7 +15,6 @@ # In this autoconfiguration, the screenshot button (circle) is unassigned, and no corresponding value could be identified for it. input_driver = "sdl2" -input_device = "Nintendo Switch Pro Controller" input_device_display_name = "Nintendo Switch Pro Controller (Linux 5.15, non-HID)" # Due to the uncommon nature of this device, the autoconfig file is not active by default. This precaution is taken to avoid potential conflicts with the widely-used Nintendo Switch Pro Controller (nintendo-hid version) file. Button layouts are not compatible. To activate this configuration: # 1) Comment out the input_vendor_id and input_product_id lines in the "Nintendo Co.,Ltd. Pro Controller.cfg" file. From 186b75c76a0b97af7cd36e4e78a726435326181b Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Fri, 23 Aug 2024 16:53:43 +0200 Subject: [PATCH 10/16] Update Nintendo Switch Pro Controller (default-off).cfg Removed the final comments --- ...do Switch Pro Controller (default-off).cfg | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index d1569a1ea..8b2b3f53a 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -1,27 +1,7 @@ -# This autoconfig file was generated using RetroArch via the Flathub package. -# Please refrain from updating it with an autoconfig created by the AppImage: The SDL2 controller driver utilizes UDEV rather than SDL2 - https://github.com/hizzlekizzle/RetroArch-AppImage/issues/12 -# -# This file uses the legacy controller name "Pro Controller" (generated by RetroArch on Linux 5.15) -# "(default-off)" was added to the file name to indicate that the autoconfig file is not active by default. See comments for input_vendor_id and input_product_id. -# -# Nintendo Switch Pro Controller (without nintendo-hid, bluetooth only) -# Without nintendo-hid, various features such as vibration, gyro, and USB support are unavailable. It appears this will be included in the Linux kernel beginning with version 5.16: -# "Pull HID updates from Jiri Kosina: -# -# - support for Nintendo Switch Pro Controllers and Joy-Cons (Daniel J. -# Ogorchock)" - https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16 -# -# The easiest solution for most users is to install the nintendo-hid DKMS module, available from https://github.com/nicman23/dkms-hid-nintendo/ -# In this autoconfiguration, the screenshot button (circle) is unassigned, and no corresponding value could be identified for it. - input_driver = "sdl2" input_device_display_name = "Nintendo Switch Pro Controller (Linux 5.15, non-HID)" -# Due to the uncommon nature of this device, the autoconfig file is not active by default. This precaution is taken to avoid potential conflicts with the widely-used Nintendo Switch Pro Controller (nintendo-hid version) file. Button layouts are not compatible. To activate this configuration: -# 1) Comment out the input_vendor_id and input_product_id lines in the "Nintendo Co.,Ltd. Pro Controller.cfg" file. -# 2) Uncomment the input_vendor_id and input_product_id lines below: # input_vendor_id = "1406" # input_product_id = "8201" - input_b_btn = "0" input_y_btn = "2" input_select_btn = "4" @@ -38,16 +18,13 @@ input_l2_axis = "+4" input_r2_axis = "+5" input_l3_btn = "7" input_r3_btn = "8" -# input_l_x_plus_axis has manually been set here: Nintendo Switch Pro Controller+Linux 5.15 (non-HID) does not register thumb sticks - https://github.com/libretro/RetroArch/issues/16905 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 has manually been set here: Nintendo Switch Pro Controller+Linux 5.15 (non-HID) does not register thumb sticks - https://github.com/libretro/RetroArch/issues/16905 input_r_x_plus_axis = "+2" input_r_x_minus_axis = "-2" input_r_y_plus_axis = "+3" -# input_r_y_minus_axis has manually been set here: Nintendo Switch Pro Controller+Linux 5.15 (non-HID) does not register thumb sticks - https://github.com/libretro/RetroArch/issues/16905 input_r_y_minus_axis = "-3" input_menu_toggle_btn = "5" From 1cc74251f2e3e9e8bcfa3fd2501ca9ccd89abcce Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Sat, 24 Aug 2024 08:23:03 +0200 Subject: [PATCH 11/16] Update Nintendo Switch Pro Controller (default-off).cfg From ff37b0f992d76a1173bb8f5610ccfb3fc64dee87 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Sun, 25 Aug 2024 10:24:03 +0200 Subject: [PATCH 12/16] Update Nintendo Switch Pro Controller (default-off).cfg --- sdl2/Nintendo Switch Pro Controller (default-off).cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index 8b2b3f53a..84de1c078 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -27,7 +27,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 = "B" input_y_btn_label = "Y" input_select_btn_label = "Minus" From 83ee5169a0be801806c281c26c57bd69b1790ba3 Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Wed, 4 Sep 2024 15:40:41 +0200 Subject: [PATCH 13/16] Update Nintendo Switch Pro Controller (default-off).cfg Solved: https://github.com/libretro/RetroArch/issues/16920 --- sdl2/Nintendo Switch Pro Controller (default-off).cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index 84de1c078..719f25581 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -1,4 +1,5 @@ input_driver = "sdl2" +#input_device = "Nintendo Switch Pro Controller" input_device_display_name = "Nintendo Switch Pro Controller (Linux 5.15, non-HID)" # input_vendor_id = "1406" # input_product_id = "8201" From 499935838f4aa96659313b757224c3e797dc010f Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Fri, 13 Sep 2024 10:12:48 +0200 Subject: [PATCH 14/16] Update Nintendo Switch Pro Controller (default-off).cfg --- sdl2/Nintendo Switch Pro Controller (default-off).cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index 719f25581..2d51e0ba4 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -1,6 +1,6 @@ input_driver = "sdl2" #input_device = "Nintendo Switch Pro Controller" -input_device_display_name = "Nintendo Switch Pro Controller (Linux 5.15, non-HID)" +input_device_display_name = "Nintendo Switch Pro Controller (non-HID)" # input_vendor_id = "1406" # input_product_id = "8201" input_b_btn = "0" From ed21f35ad06fcc56c2d9402e022dfae6a608215d Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Fri, 13 Sep 2024 10:13:03 +0200 Subject: [PATCH 15/16] Update Nintendo Switch Pro Controller (default-off).cfg --- sdl2/Nintendo Switch Pro Controller (default-off).cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (default-off).cfg index 2d51e0ba4..3235c0323 100644 --- a/sdl2/Nintendo Switch Pro Controller (default-off).cfg +++ b/sdl2/Nintendo Switch Pro Controller (default-off).cfg @@ -1,8 +1,8 @@ input_driver = "sdl2" #input_device = "Nintendo Switch Pro Controller" input_device_display_name = "Nintendo Switch Pro Controller (non-HID)" -# input_vendor_id = "1406" -# input_product_id = "8201" +#input_vendor_id = "1406" +#input_product_id = "8201" input_b_btn = "0" input_y_btn = "2" input_select_btn = "4" From 0aa4b9e2bec7fdb6990ddf21359bfae848ac4bfb Mon Sep 17 00:00:00 2001 From: David Hedlund Date: Thu, 3 Oct 2024 00:28:40 +0200 Subject: [PATCH 16/16] Rename Nintendo Switch Pro Controller (default-off).cfg to Nintendo Switch Pro Controller (non-HID) (default-off).cfg Added "(non-HID) " to the filename --- ...=> Nintendo Switch Pro Controller (non-HID) (default-off).cfg} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename sdl2/{Nintendo Switch Pro Controller (default-off).cfg => Nintendo Switch Pro Controller (non-HID) (default-off).cfg} (100%) diff --git a/sdl2/Nintendo Switch Pro Controller (default-off).cfg b/sdl2/Nintendo Switch Pro Controller (non-HID) (default-off).cfg similarity index 100% rename from sdl2/Nintendo Switch Pro Controller (default-off).cfg rename to sdl2/Nintendo Switch Pro Controller (non-HID) (default-off).cfg