-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Nintendo - Switch Pro Controller.cfg
I mapped all buttons manually. The rest of the file is a copy from udev/Create Nintendo - Switch Pro Controller.cfg, including: # Hex vid/pid: 057e:2009 input_vendor_id = "1406" input_product_id = "8201"
- Loading branch information
1 parent
830f79f
commit 47385c2
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Nintendo Switch Pro Controller (with nintendo-hid) | ||
|
||
input_driver = "android" | ||
input_device = "Pro Controller" | ||
input_device_display_name = "Nintendo Switch Pro Controller" | ||
|
||
# Hex vid/pid: 057e:2009 | ||
input_vendor_id = "1406" | ||
input_product_id = "8201" | ||
|
||
input_a_btn = "97" | ||
input_b_btn = "96" | ||
input_x_btn = "100" | ||
input_y_btn = "99" | ||
input_select_btn = "109" | ||
input_start_btn = "108" | ||
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_a_btn_label = "A" | ||
input_b_btn_label = "B" | ||
input_x_btn_label = "X" | ||
input_y_btn_label = "Y" | ||
input_select_btn_label = "Minus" | ||
input_start_btn_label = "Plus" | ||
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_menu_toggle_btn_label = "Home" | ||
|
||
input_up_btn = "19" | ||
input_down_btn = "20" | ||
input_left_btn = "21" | ||
input_right_btn = "22" | ||
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_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+ (Down)" | ||
input_r_y_minus_axis_label = "Right Analog Y- (Up)" |