1# Device: Xbox 360 Wired Controller (Linux)
2# Button mapping works with recent Linux versions. Older
3# versions need another mapping (you must create a custom
4# config)
5
6[device]
7name = Xbox 360 Controller
8type = joystick/gamepad
9
10[default]
11include = common/gamepad
12axis_0_neg = lstick_left
13axis_0_pos = lstick_right
14axis_1_neg = lstick_up
15axis_1_pos = lstick_down
16axis_2_pos = left_trigger
17axis_3_neg = rstick_up
18axis_3_pos = rstick_down
19axis_4_neg = rstick_left
20axis_4_pos = rstick_right
21axis_5_pos = right_trigger
22button_0 = south_button
23button_1 = east_button
24button_2 = west_button
25button_3 = north_button
26button_4 = left_shoulder
27button_5 = right_shoulder
28button_6 = select_button
29button_7 = start_button
30button_8 = menu_button
31button_9 = lstick_button
32button_10 = rstick_button
33hat_0_left = dpad_left
34hat_0_right = dpad_right
35hat_0_up = dpad_up
36hat_0_down = dpad_down
37