-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_rocket_league.yaml
More file actions
73 lines (70 loc) · 3.1 KB
/
example_rocket_league.yaml
File metadata and controls
73 lines (70 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Rocket League: Wii Remote + Nunchuk
#
# Wii Remote:
# A → Jump (Xbox A)
# B → Throttle (Right Trigger, full)
# + → Menu (Start)
# - → Back (Options)
# Home → Guide (Xbox)
# Down → Boost (Xbox B)
# 1 → Ball Cam (Xbox X)
# Up → D-Pad Up
# Left → D-Pad Left
# Right → D-Pad Right
# 2 → D-Pad Down
#
# Nunchuk:
# Z → Brake (Left Trigger, full)
# C → Handbrake (Xbox Y)
# Stick → Left Joystick (steering / aerial)
runtime:
output_mode: gadget
gadget_library: 360-w-raw-gadget/target/release/libx360_w_raw_gadget.so
interfaces: 1
rumble: true
devices:
- id: wiimote
connection:
type: wiimote
timeout_s: 60
match:
name: "Nintendo Wii Remote"
mappings:
- {source_type: 1, source_code: 304, target: A, kind: button} # BTN_A → Jump
- {source_type: 1, source_code: 305, target: RIGHT_TRIGGER, kind: button, on_value: 255, off_value: 0} # BTN_B → Throttle
- {source_type: 1, source_code: 407, target: START, kind: button} # KEY_NEXT (+)
- {source_type: 1, source_code: 412, target: OPTIONS, kind: button} # KEY_PREVIOUS (-)
- {source_type: 1, source_code: 316, target: XBOX, kind: button} # BTN_MODE (Home)
- {source_type: 1, source_code: 108, target: B, kind: button} # KEY_DOWN → Boost
- {source_type: 1, source_code: 257, target: X, kind: button} # BTN_1 → Ball Cam
- {source_type: 1, source_code: 103, target: DPAD_UP, kind: button} # KEY_UP
- {source_type: 1, source_code: 105, target: DPAD_LEFT, kind: button} # KEY_LEFT
- {source_type: 1, source_code: 106, target: DPAD_RIGHT, kind: button} # KEY_RIGHT
- {source_type: 1, source_code: 258, target: DPAD_DOWN, kind: button} # BTN_2
- id: nunchuk
connection:
type: evdev # appears automatically once wiimote connects
match:
name: "Nintendo Wii Remote Nunchuk"
mappings:
- {source_type: 1, source_code: 309, target: LEFT_TRIGGER, kind: button, on_value: 255, off_value: 0} # BTN_Z → Brake
- {source_type: 1, source_code: 306, target: Y, kind: button} # BTN_C → Handbrake
- source_type: 3
source_code: 16 # ABS_HAT0X → steering
target: LEFT_JOYSTICK_X
kind: axis
source_min: -90
source_max: 111
target_min: -32767
target_max: 32767
deadzone: 0.10
- source_type: 3
source_code: 17 # ABS_HAT0Y → pitch (inverted: push stick up = positive Y)
target: LEFT_JOYSTICK_Y
kind: axis
source_min: -104
source_max: 95
target_min: -32767
target_max: 32767
deadzone: 0.10
invert: false