-
Notifications
You must be signed in to change notification settings - Fork 4
/
controls.toml
52 lines (38 loc) · 1.12 KB
/
controls.toml
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
[controls.axes.Player]
mouse_axis.axis = 0
# [controls.axes.Player]
# emulated.neg.key = "Left"
# emulated.pos.key = "Right"
[controls.actions.Shoot]
combinations = [[{ mouse_button = "MouseButtonLeft" }], [{ key = "Z" }]]
[controls.actions.EnableDisableSound]
combinations = [[{ key = "M" }]]
once = true
# Usage
# Axes
# With keyboard keys
# [controls.axes.XXX]
# emulated.neg.key = "Left"
# emulated.pos.key = "Right"
# With mouse buttons
# [controls.axes.XXX]
# emulated.neg.mouse_button = "MouseButtonLeft"
# emulated.pos.mouse_button = "MouseButtonRight"
# With gamepad buttons
# [controls.axes.XXX]
# emulated.neg.controller = { id = 0, button = "GamepadButton14" }
# emulated.pos.controller = { id = 0, button = "GamepadButton15" }
# With gamepad axis
# [controls.axes.XXX]
# controller_axis = { id = 0, axis = 0, invert = false, dead_zone = 0.2 }
# With mouse axis
# [controls.axes.XXX]
# mouse_axis.axis = 0
# Actions
# [controls.actions.XXX]
# combinations = [
# [{ key = "ControlLeft" }, { key = "Q" }],
# [{ key = "Escape" }],
# [{ controller = { id = 0, button = "GamepadButton9" } }],
# ]
# once = true