-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.json
307 lines (306 loc) · 11.8 KB
/
config.json
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
{
"config": {
"polling_frequency": 1000,
"analog_dead_zone": 2000,
"disable_motion": true,
"verbose": false,
"print_events": false,
"print_motion_data": false,
"osc_namespace": "puaracontroller",
"osc_server_port": 9000,
"osc_client_address": "localhost",
"osc_client_port": 54321
},
"osc": [
{
"controller_id": -1,
"namespace": "puaracontroller/<ID>/button/A",
"arguments": [
{"action": "A", "value": "value", "min": 0, "max": 1},
{"action": "A", "value": "duration"},
{"action": "A", "value": "timestamp"},
{"action": "A", "value": "state"},
{"action": "A", "value": "custom_text"},
{"action": "A", "value": "1"},
{"action": "A", "value": "1.1"}
]
},
{
"namespace": "puaracontroller/<ID>/button/B",
"arguments": [
{"action": "B", "value": "value", "min": 0, "max": 1},
{"action": "B", "value": "duration"},
{"action": "B", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/X",
"arguments": [
{"action": "X", "value": "value", "min": 0, "max": 1},
{"action": "X", "value": "duration"},
{"action": "X", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/Y",
"arguments": [
{"action": "Y", "value": "value", "min": 0, "max": 1},
{"action": "Y", "value": "duration"},
{"action": "Y", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/back",
"arguments": [
{"action": "back", "value": "value", "min": 0, "max": 1},
{"action": "back", "value": "duration"},
{"action": "back", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/guide",
"arguments": [
{"action": "guide", "value": "value", "min": 0, "max": 1},
{"action": "guide", "value": "duration"},
{"action": "guide", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/start",
"arguments": [
{"action": "start", "value": "value", "min": 0, "max": 1},
{"action": "start", "value": "duration"},
{"action": "start", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/leftstick",
"arguments": [
{"action": "leftstick", "value": "value", "min": 0, "max": 1},
{"action": "leftstick", "value": "duration"},
{"action": "leftstick", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/rightstick",
"arguments": [
{"action": "rightstick", "value": "value", "min": 0, "max": 1},
{"action": "rightstick", "value": "duration"},
{"action": "rightstick", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/leftshoulder",
"arguments": [
{"action": "leftshoulder", "value": "value", "min": 0, "max": 1},
{"action": "leftshoulder", "value": "duration"},
{"action": "leftshoulder", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/rightshoulder",
"arguments": [
{"action": "rightshoulder", "value": "value", "min": 0, "max": 1},
{"action": "rightshoulder", "value": "duration"},
{"action": "rightshoulder", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/dpad_up",
"arguments": [
{"action": "dpad_up", "value": "value", "min": 0, "max": 1},
{"action": "dpad_up", "value": "duration"},
{"action": "dpad_up", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/dpad_down",
"arguments": [
{"action": "dpad_down", "value": "value", "min": 0, "max": 1},
{"action": "dpad_down", "value": "duration"},
{"action": "dpad_down", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/dpad_left",
"arguments": [
{"action": "dpad_left", "value": "value", "min": 0, "max": 1},
{"action": "dpad_left", "value": "duration"},
{"action": "dpad_left", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/dpad_right",
"arguments": [
{"action": "dpad_right", "value": "value", "min": 0, "max": 1},
{"action": "dpad_right", "value": "duration"},
{"action": "dpad_right", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/misc1",
"arguments": [
{"action": "misc1", "value": "value", "min": 0, "max": 1},
{"action": "misc1", "value": "duration"},
{"action": "misc1", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/paddle1",
"arguments": [
{"action": "paddle1", "value": "value", "min": 0, "max": 1},
{"action": "paddle1", "value": "duration"},
{"action": "paddle1", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/paddle2",
"arguments": [
{"action": "paddle2", "value": "value", "min": 0, "max": 1},
{"action": "paddle2", "value": "duration"},
{"action": "paddle2", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/paddle3",
"arguments": [
{"action": "paddle3", "value": "value", "min": 0, "max": 1},
{"action": "paddle3", "value": "duration"},
{"action": "paddle3", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/paddle4",
"arguments": [
{"action": "paddle4", "value": "value", "min": 0, "max": 1},
{"action": "paddle4", "value": "duration"},
{"action": "paddle4", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/touchpadbutton",
"arguments": [
{"action": "touchpadbutton", "value": "value", "min": 0, "max": 1},
{"action": "touchpadbutton", "value": "duration"},
{"action": "touchpadbutton", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/analogleft",
"arguments": [
{"action": "analogleft", "value": "X", "min": -32768, "max": 32767},
{"action": "analogleft", "value": "Y", "min": -32768, "max": 32767},
{"action": "analogleft", "value": "duration"},
{"action": "analogleft", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/analogright",
"arguments": [
{"action": "analogright", "value": "X", "min": -32768, "max": 32767},
{"action": "analogright", "value": "Y", "min": -32768, "max": 32767},
{"action": "analogright", "value": "duration"},
{"action": "analogright", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/triggerleft",
"arguments": [
{"action": "triggerleft", "value": "value", "min": 0, "max": 1},
{"action": "triggerleft", "value": "value", "min": 0, "max": 32767},
{"action": "triggerleft", "value": "duration"},
{"action": "triggerleft", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/triggerright",
"arguments": [
{"action": "triggerright", "value": "value", "min": 0, "max": 1},
{"action": "triggerright", "value": "value", "min": 0, "max": 32767},
{"action": "triggerright", "value": "duration"},
{"action": "triggerright", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/accel",
"arguments": [
{"action": "accel", "value": "X", "min": -40, "max": 40},
{"action": "accel", "value": "Y", "min": -40, "max": 40},
{"action": "accel", "value": "Z", "min": -40, "max": 40},
{"action": "accel", "value": "duration"},
{"action": "accel", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/gyro",
"arguments": [
{"action": "gyro", "value": "X", "min": -40, "max": 40},
{"action": "gyro", "value": "Y", "min": -40, "max": 40},
{"action": "gyro", "value": "Z", "min": -40, "max": 40},
{"action": "gyro", "value": "duration"},
{"action": "gyro", "value": "timestamp"}
]
},
{
"namespace": "puaracontroller/<ID>/button/touch",
"arguments": [
{"action": "touch", "value": "X", "min": 0.0, "max": 1.0},
{"action": "touch", "value": "Y", "min": 0.0, "max": 1.0},
{"action": "touch", "value": "touchpad"},
{"action": "touch", "value": "finger"},
{"action": "touch", "value": "duration"},
{"action": "touch", "value": "timestamp"}
]
}
],
"libmapper": [
{
"direction": "in",
"name": "rumble",
"arguments": [
{"action": "id", "min": 0, "max": 10},
{"action": "time", "min": 0, "max": 10000},
{"action": "low_freq", "min": 0.0, "max": 1.0},
{"action": "hi_freq", "min": 0.0, "max": 1.0}
]
},
{
"direction": "out",
"name": "A",
"arguments": [
{"action": "A", "value": "value", "min": 0, "max": 1}
]
},
{
"direction": "out",
"name": "analogleft",
"arguments": [
{"action": "analogleft", "value": "X", "min": -1.0, "max": 1.0},
{"action": "analogleft", "value": "Y", "min": -1.0, "max": 1.0}
]
}
],
"midi": [
{
"controller_id": -1,
"type": "on",
"channel": 0,
"key": {"action": "int", "value": "60"},
"velocity": {"action": "A", "value": "value", "min": 0, "max": 127}
},
{
"controller_id": -1,
"type": "off",
"channel": 0,
"key": {"action": "int", "value": "60"},
"velocity": {"action": "B", "value": 0}
},
{
"controller_id": 0,
"type": "cc",
"channel": 0,
"controller": {"action": "int", "value": "15"},
"value": {"action": "triggerleft", "value": "value", "min": 127, "max": 0}
}
]
}