Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linuxraw: Add Nintendo Switch Pro Controller #1174

Merged
merged 26 commits into from
Sep 17, 2024
Merged
Changes from 3 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fb884f9
Create Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 10, 2024
4ddc9d8
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 10, 2024
b67042b
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 10, 2024
09927a8
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 21, 2024
5ab3d29
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 21, 2024
b660503
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 21, 2024
eac4d1d
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 21, 2024
7f2b09e
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 23, 2024
6bf564f
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 23, 2024
a839bdd
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 24, 2024
1078b35
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 24, 2024
ec351d3
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 25, 2024
280bbe5
Create Nintendo Switch Pro Controller.cfg
davidhedlund Aug 26, 2024
f6e6725
Create Pro Controller.cfg
davidhedlund Aug 26, 2024
4f46cf2
Update Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Aug 26, 2024
a4a6846
Delete linuxraw/Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Sep 4, 2024
7c34ca8
Delete linuxraw/Pro Controller.cfg
davidhedlund Sep 4, 2024
6036036
Create Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Sep 4, 2024
019c5ce
Create Pro Controller.cfg
davidhedlund Sep 4, 2024
522a31f
Update Nintendo Switch Pro Controller.cfg
davidhedlund Sep 4, 2024
461ee71
Update Nintendo Switch Pro Controller.cfg
davidhedlund Sep 4, 2024
5dd882b
Update Nintendo Switch Pro Controller.cfg
davidhedlund Sep 12, 2024
61aee75
Delete linuxraw/Nintendo Co., Ltd. Pro Controller.cfg
davidhedlund Sep 12, 2024
81a4d9f
Delete linuxraw/Pro Controller.cfg
davidhedlund Sep 12, 2024
103508d
Update Nintendo Switch Pro Controller.cfg
davidhedlund Sep 13, 2024
0ee97c2
Update Nintendo Switch Pro Controller.cfg
davidhedlund Sep 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions linuxraw/Nintendo Co., Ltd. Pro Controller.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Screenshot button (circle) is unbound in this autoconf, but has an ID of 4

input_driver = "linuxraw"
# The files "Nintendo Co., Ltd. Pro Controller.cfg" and "Nintendo Switch Pro Controller.cfg" should have identical content except for the input_device variable. This difference allows thelinuxraw driver to recognize the controller on various Linux kernel versions.
input_device = "Nintendo Co., Ltd. Pro Controller"
davidhedlund marked this conversation as resolved.
Show resolved Hide resolved

input_b_btn = "0"
input_y_btn = "3"
input_select_btn = "9"
input_start_btn = "10"
input_up_axis = "-5"
input_down_axis = "+5"
input_left_axis = "-4"
input_right_axis = "+4"
input_a_btn = "1"
input_x_btn = "2"
input_l_btn = "5"
input_r_btn = "6"
input_l2_btn = "7"
input_r2_btn = "8"
input_l3_btn = "12"
input_r3_btn = "13"
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 = "11"

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_btn_label = "ZL"
input_r2_btn_label = "ZR"
input_l3_btn_label = "Left Stick Press"
input_r3_btn_label = "Right Stick Press"
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)"
input_menu_toggle_btn_label = "Home"
Loading