Add udev/HORI_Fighting_Commander_for_Nintendo_Switch_2.cfg

If a computer is turned on with the controller already plugged to it,
linux recognizes a different controller.

This controller has different button mappings and lacks home button.

If I plug the controller into a computer after linux completes booting,
udev/HORI_Fighting_Commander_for_Nintendo_Switch.cfg is used.

According to instruction manual, the controller has nintendo switch mode
and PC mode. I guess it is PC mode because it lacks home button.
This commit is contained in:
crocket 2021-10-11 10:15:44 +09:00
parent e130ef0d93
commit 3e36bf7ee2
2 changed files with 62 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Hori Fighting Commander for Nintendo Switch
# Hori Fighting Commander for Nintendo Switch - mode 1
input_driver = "udev"
input_device = "Generic X-Box pad"
input_device_display_name = "Hori Fighting Commander for Nintendo Switch"
input_device_display_name = "Hori Fighting Commander for Nintendo Switch - mode 1"
# 0f0d:00dc
input_vendor_id = "3853"
input_product_id = "220"

View File

@ -0,0 +1,60 @@
# Hori Fighting Commander for Nintendo Switch - mode 2
input_driver = "udev"
input_device = "HORIPAD S"
input_device_display_name = "Hori Fighting Commander for Nintendo Switch - mode 2"
# 1a34:0203
input_vendor_id = "6708"
input_product_id = "515"
input_down_btn = "h0down"
input_down_btn_label = "D-Pad Down"
input_up_btn = "h0up"
input_up_btn_label = "D-Pad Up"
input_left_btn = "h0left"
input_left_btn_label = "D-Pad Left"
input_right_btn = "h0right"
input_right_btn_label = "D-Pad Right"
input_a_btn = "2"
input_a_btn_label = "A"
input_b_btn = "1"
input_b_btn_label = "B"
input_x_btn = "3"
input_x_btn_label = "X"
input_y_btn = "0"
input_y_btn_label = "Y"
input_select_btn = "8"
input_select_btn_label = "-"
input_start_btn = "9"
input_start_btn_label = "+"
input_l_btn = "4"
input_l_btn_label = "L"
input_r_btn = "5"
input_r_btn_label = "R"
input_l2_btn = "6"
input_l2_btn_label = "ZL"
input_r2_btn = "7"
input_r2_btn_label = "ZR"
input_l3_btn = "10"
input_l3_btn_label = "LSB(Left Stick Button)"
input_r3_btn = "11"
input_r3_btn_label = "RSB(Right Stick Button)"
input_l_x_minus_axis = "-0"
input_l_x_minus_axis_label = "Left Stick: Left"
input_l_x_plus_axis = "+0"
input_l_x_plus_axis_label = "Left Stick: Right"
input_l_y_minus_axis = "-1"
input_l_y_minus_axis_label = "Left Stick: Up"
input_l_y_plus_axis = "+1"
input_l_y_plus_axis_label = "Left Stick: Down"
input_r_x_minus_axis = "-2"
input_r_x_minus_axis_label = "Right Stick: Left"
input_r_x_plus_axis = "+2"
input_r_x_plus_axis_label = "Right Stick: Right"
input_r_y_minus_axis = "-3"
input_r_y_minus_axis_label = "Right Stick: Up"
input_r_y_plus_axis = "+3"
input_r_y_plus_axis_label = "Right Stick: Down"