-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathactions.json
More file actions
85 lines (85 loc) · 3.7 KB
/
Copy pathactions.json
File metadata and controls
85 lines (85 loc) · 3.7 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
74
75
76
77
78
79
80
81
82
83
84
85
{
"plugin": {
"description": "Turns the deck into a game controller: it creates a virtual gamepad and the actions press its buttons and move its axes.",
"requirements": "Access to /dev/uinput so the virtual gamepad can be created. Without it the actions do nothing."
},
"actions": {
"Joystick": {
"description": "Moves one axis of the virtual gamepad. Put one on a key with a value and another with value 0 on a second key, or use \"Add to Value\" on two keys to nudge an axis in both directions.",
"settings": {
"axis": {
"type": "string",
"default": "Left X (ABS_RZ)",
"values": [
"Left X (ABS_RZ)",
"Left Y (ABS_THROTTLE)",
"Right X (ABS_RX)",
"Right Y (ABS_RY)",
"D-pad X",
"D-pad Y",
"X Axis (ABS_X)",
"Y Axis (ABS_Y)"
],
"description": "Which axis to move. The two last ones can move the mouse cursor as well - avoid them unless that is wanted."
},
"operation": {
"type": "string",
"default": "Set Value",
"values": [
"Set Value",
"Add to Value"
],
"description": "\"Set Value\" puts the axis at the value, \"Add to Value\" moves it by that much from where it is."
},
"value": {
"type": "integer",
"default": 0,
"description": "How far to deflect the axis, in percent from -100 to 100. For the two D-pad axes it is -1, 0 or 1 instead.",
"example": 100
}
}
},
"JoystickButtons": {
"description": "Presses a button on the virtual gamepad. It can tap the button, hold it down, release it again, or toggle it.",
"settings": {
"button": {
"type": "string",
"default": "A Button",
"values": [
"A Button",
"B Button",
"X Button",
"Y Button",
"Left Bumper",
"Right Bumper",
"Left Trigger",
"Right Trigger",
"Select Button",
"Start Button",
"Home/Guide",
"Left Stick Click",
"Right Stick Click"
],
"description": "Which gamepad button to operate."
},
"action_type": {
"type": "string",
"default": "Press and Release",
"values": [
"Press and Release",
"Press",
"Release",
"Toggle"
],
"description": "\"Press and Release\" taps the button. \"Press\" holds it down until a \"Release\" action lets go - use those two on separate keys. \"Toggle\" flips between held and released."
},
"duration": {
"type": "number",
"default": 0.1,
"description": "How long the button stays down, in seconds. Only used with \"Press and Release\".",
"example": 0.1
}
}
}
}
}