@defold-typescript/library-types 0.22.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/api-doc/boom.json +3870 -0
  2. package/api-doc/{bridge.bridge.json → bridge.json} +754 -844
  3. package/api-doc/bzAnim.json +338 -0
  4. package/api-doc/decore.json +23 -23
  5. package/api-doc/defcon.json +150 -0
  6. package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
  7. package/api-doc/defsave.json +518 -0
  8. package/api-doc/deftest.json +741 -0
  9. package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
  10. package/api-doc/druid.json +249 -1846
  11. package/api-doc/event.json +1074 -0
  12. package/api-doc/gooey.json +2050 -0
  13. package/api-doc/immutable.json +65 -0
  14. package/api-doc/in.accelerometer.json +75 -1
  15. package/api-doc/in.button.json +17 -10
  16. package/api-doc/in.cursor.json +26 -0
  17. package/api-doc/in.gesture.json +401 -6
  18. package/api-doc/in.keyboard.json +2 -0
  19. package/api-doc/in.mapper.json +12 -8
  20. package/api-doc/in.onscreen.json +61 -5
  21. package/api-doc/in.state.json +61 -13
  22. package/api-doc/in.textbox.json +23 -12
  23. package/api-doc/in.triggers.json +336 -0
  24. package/api-doc/lang.json +528 -0
  25. package/api-doc/{event.event.json → log.json} +96 -101
  26. package/api-doc/metrics.fps.json +61 -2
  27. package/api-doc/metrics.mem.json +61 -2
  28. package/api-doc/monarch.monarch.json +249 -7
  29. package/api-doc/monarch.transitions.easings.json +19 -26
  30. package/api-doc/monarch.transitions.gui.json +782 -79
  31. package/api-doc/nakama.engine.defold.json +31 -18
  32. package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
  33. package/api-doc/nakama.util.log.json +32 -4
  34. package/api-doc/narrator.json +647 -0
  35. package/api-doc/openapi/nakama.nakama.json +7680 -0
  36. package/api-doc/orthographic.camera.json +96 -98
  37. package/api-doc/orthographic.json +602 -0
  38. package/api-doc/panthera.json +1183 -0
  39. package/api-doc/{persist.persist.json → persist.json} +26 -1
  40. package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
  41. package/api-doc/proto.json +995 -0
  42. package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
  43. package/api-doc/richtext.color.json +77 -0
  44. package/api-doc/richtext.richtext.json +375 -5
  45. package/api-doc/saver.saver.json +714 -263
  46. package/api-doc/saver.storage.json +283 -52
  47. package/api-doc/squid.json +846 -0
  48. package/api-doc/{starly.starly.json → starly.json} +1 -1
  49. package/api-doc/tweener.json +277 -0
  50. package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
  51. package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
  52. package/authored-targets.json +403 -0
  53. package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
  54. package/generated/bridge.d.ts +468 -0
  55. package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
  56. package/generated/decore.d.ts +37 -37
  57. package/generated/defcon.d.ts +43 -0
  58. package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
  59. package/generated/defsave.d.ts +144 -0
  60. package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
  61. package/generated/druid.d.ts +198 -502
  62. package/generated/event.d.ts +318 -0
  63. package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
  64. package/generated/immutable.d.ts +13 -0
  65. package/generated/in.onscreen.d.ts +5 -0
  66. package/generated/in.textbox.d.ts +4 -0
  67. package/generated/lang.d.ts +101 -0
  68. package/generated/log.d.ts +36 -0
  69. package/generated/metrics.fps.d.ts +19 -1
  70. package/generated/metrics.mem.d.ts +19 -1
  71. package/generated/monarch.monarch.d.ts +44 -1
  72. package/generated/monarch.transitions.easings.d.ts +0 -1
  73. package/generated/monarch.transitions.gui.d.ts +96 -12
  74. package/generated/nakama.d.ts +1158 -0
  75. package/generated/nakama.engine.defold.d.ts +3 -1
  76. package/generated/nakama.util.log.d.ts +6 -0
  77. package/generated/narrator.d.ts +121 -0
  78. package/generated/openapi/nakama.nakama.d.ts +884 -0
  79. package/generated/orthographic.camera.d.ts +24 -38
  80. package/generated/orthographic.d.ts +155 -0
  81. package/generated/panthera.d.ts +170 -0
  82. package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
  83. package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
  84. package/generated/proto.d.ts +146 -0
  85. package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
  86. package/generated/richtext.color.d.ts +15 -0
  87. package/generated/saver.saver.d.ts +289 -42
  88. package/generated/saver.storage.d.ts +79 -14
  89. package/generated/squid.d.ts +127 -0
  90. package/generated/tweener.d.ts +42 -0
  91. package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
  92. package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
  93. package/library-classification.json +0 -227
  94. package/library-targets.json +1 -284
  95. package/luals-targets.json +168 -1
  96. package/openapi-targets.json +17 -0
  97. package/package.json +9 -88
  98. package/script-api-targets.json +15 -0
  99. package/scripts/__snapshots__/parse-luals.test.ts.snap +504 -85
  100. package/scripts/apply-luals-overrides.ts +95 -0
  101. package/scripts/authored-parity.ts +718 -0
  102. package/scripts/emit-library-dts.ts +177 -19
  103. package/scripts/extract-api-doc.ts +189 -38
  104. package/scripts/fidelity-floor.ts +178 -0
  105. package/scripts/import-upstream-docs.ts +125 -0
  106. package/scripts/lower-api-doc.ts +69 -19
  107. package/scripts/luals-fidelity.ts +22 -10
  108. package/scripts/map-luals-types.ts +86 -22
  109. package/scripts/parse-lua-surface.ts +187 -0
  110. package/scripts/parse-luals.ts +473 -22
  111. package/scripts/parse-markdown-api.ts +247 -0
  112. package/scripts/parse-openapi-api.ts +313 -0
  113. package/scripts/sync-authored-types.ts +249 -0
  114. package/scripts/sync-library-types.ts +99 -3
  115. package/scripts/sync-luals-types.ts +29 -2
  116. package/scripts/sync-markdown-types.ts +761 -0
  117. package/scripts/sync-openapi-types.ts +308 -0
  118. package/scripts/sync-script-api-types.ts +367 -0
  119. package/api-doc/boom.boom.json +0 -26
  120. package/api-doc/bzAnim.bzLibrary.json +0 -156
  121. package/api-doc/defcon.console.json +0 -109
  122. package/api-doc/defsave.defsave.json +0 -175
  123. package/api-doc/deftest.deftest.json +0 -71
  124. package/api-doc/gooey.gooey.json +0 -963
  125. package/api-doc/immutable.immutable.json +0 -63
  126. package/api-doc/lang.lang.json +0 -411
  127. package/api-doc/log.log.json +0 -50
  128. package/api-doc/narrator.narrator.json +0 -150
  129. package/api-doc/proto.proto.json +0 -355
  130. package/api-doc/squid.squid.json +0 -660
  131. package/api-doc/tweener.tweener.json +0 -419
  132. package/generated/bridge.bridge.d.ts +0 -533
  133. package/generated/defcon.console.d.ts +0 -24
  134. package/generated/defsave.defsave.d.ts +0 -31
  135. package/generated/event.event.d.ts +0 -54
  136. package/generated/immutable.immutable.d.ts +0 -13
  137. package/generated/lang.lang.d.ts +0 -33
  138. package/generated/log.log.d.ts +0 -40
  139. package/generated/nakama.nakama.d.ts +0 -594
  140. package/generated/narrator.narrator.d.ts +0 -66
  141. package/generated/proto.proto.d.ts +0 -36
  142. package/generated/squid.squid.d.ts +0 -106
  143. package/generated/tweener.tweener.d.ts +0 -151
  144. /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
  145. /package/generated/{starly.starly.d.ts → starly.d.ts} +0 -0
@@ -7,15 +7,408 @@
7
7
  "elements": [
8
8
  {
9
9
  "type": "TYPEDEF",
10
- "name": "GestureInstance"
10
+ "name": "GestureInstance",
11
+ "functions": [
12
+ {
13
+ "type": "FUNCTION",
14
+ "name": "on_input",
15
+ "brief": "",
16
+ "description": "",
17
+ "parameters": [
18
+ {
19
+ "name": "action_id",
20
+ "doc": "",
21
+ "types": [
22
+ "Hash"
23
+ ],
24
+ "is_optional": "False"
25
+ },
26
+ {
27
+ "name": "action",
28
+ "doc": "",
29
+ "types": [
30
+ "{}"
31
+ ],
32
+ "is_optional": "False"
33
+ }
34
+ ],
35
+ "returnvalues": [
36
+ {
37
+ "name": "",
38
+ "doc": "",
39
+ "types": [
40
+ "DetectedGestures"
41
+ ]
42
+ }
43
+ ]
44
+ }
45
+ ]
11
46
  },
12
47
  {
13
48
  "type": "TYPEDEF",
14
- "name": "DetectedGestures"
49
+ "name": "DetectedGestures",
50
+ "properties": [
51
+ {
52
+ "name": "tap",
53
+ "brief": "",
54
+ "description": "",
55
+ "types": [
56
+ "{ position: { x: number; y: number; }; }"
57
+ ],
58
+ "is_optional": "True",
59
+ "fields": [
60
+ {
61
+ "name": "position",
62
+ "doc": "",
63
+ "types": [
64
+ "{ x: number; y: number; }"
65
+ ],
66
+ "is_optional": "False",
67
+ "fields": [
68
+ {
69
+ "name": "x",
70
+ "doc": "",
71
+ "types": [
72
+ "number"
73
+ ],
74
+ "is_optional": "False"
75
+ },
76
+ {
77
+ "name": "y",
78
+ "doc": "",
79
+ "types": [
80
+ "number"
81
+ ],
82
+ "is_optional": "False"
83
+ }
84
+ ]
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "name": "double_tap",
90
+ "brief": "",
91
+ "description": "",
92
+ "types": [
93
+ "{ position: { x: number; y: number; }; }"
94
+ ],
95
+ "is_optional": "True",
96
+ "fields": [
97
+ {
98
+ "name": "position",
99
+ "doc": "",
100
+ "types": [
101
+ "{ x: number; y: number; }"
102
+ ],
103
+ "is_optional": "False",
104
+ "fields": [
105
+ {
106
+ "name": "x",
107
+ "doc": "",
108
+ "types": [
109
+ "number"
110
+ ],
111
+ "is_optional": "False"
112
+ },
113
+ {
114
+ "name": "y",
115
+ "doc": "",
116
+ "types": [
117
+ "number"
118
+ ],
119
+ "is_optional": "False"
120
+ }
121
+ ]
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "long_press",
127
+ "brief": "",
128
+ "description": "",
129
+ "types": [
130
+ "{ position: { x: number; y: number; }; time: number; }"
131
+ ],
132
+ "is_optional": "True",
133
+ "fields": [
134
+ {
135
+ "name": "position",
136
+ "doc": "",
137
+ "types": [
138
+ "{ x: number; y: number; }"
139
+ ],
140
+ "is_optional": "False",
141
+ "fields": [
142
+ {
143
+ "name": "x",
144
+ "doc": "",
145
+ "types": [
146
+ "number"
147
+ ],
148
+ "is_optional": "False"
149
+ },
150
+ {
151
+ "name": "y",
152
+ "doc": "",
153
+ "types": [
154
+ "number"
155
+ ],
156
+ "is_optional": "False"
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "name": "time",
162
+ "doc": "",
163
+ "types": [
164
+ "number"
165
+ ],
166
+ "is_optional": "False"
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "name": "repeated",
172
+ "brief": "",
173
+ "description": "",
174
+ "types": [
175
+ "boolean"
176
+ ],
177
+ "is_optional": "True"
178
+ },
179
+ {
180
+ "name": "swipe_left",
181
+ "brief": "",
182
+ "description": "",
183
+ "types": [
184
+ "boolean"
185
+ ],
186
+ "is_optional": "True"
187
+ },
188
+ {
189
+ "name": "swipe_right",
190
+ "brief": "",
191
+ "description": "",
192
+ "types": [
193
+ "boolean"
194
+ ],
195
+ "is_optional": "True"
196
+ },
197
+ {
198
+ "name": "swipe_up",
199
+ "brief": "",
200
+ "description": "",
201
+ "types": [
202
+ "boolean"
203
+ ],
204
+ "is_optional": "True"
205
+ },
206
+ {
207
+ "name": "swipe_down",
208
+ "brief": "",
209
+ "description": "",
210
+ "types": [
211
+ "boolean"
212
+ ],
213
+ "is_optional": "True"
214
+ },
215
+ {
216
+ "name": "swipe",
217
+ "brief": "",
218
+ "description": "",
219
+ "types": [
220
+ "{ from: { x: number; y: number; }; to: { x: number; y: number; }; time: number; }"
221
+ ],
222
+ "is_optional": "True",
223
+ "fields": [
224
+ {
225
+ "name": "from",
226
+ "doc": "",
227
+ "types": [
228
+ "{ x: number; y: number; }"
229
+ ],
230
+ "is_optional": "False",
231
+ "fields": [
232
+ {
233
+ "name": "x",
234
+ "doc": "",
235
+ "types": [
236
+ "number"
237
+ ],
238
+ "is_optional": "False"
239
+ },
240
+ {
241
+ "name": "y",
242
+ "doc": "",
243
+ "types": [
244
+ "number"
245
+ ],
246
+ "is_optional": "False"
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ "name": "to",
252
+ "doc": "",
253
+ "types": [
254
+ "{ x: number; y: number; }"
255
+ ],
256
+ "is_optional": "False",
257
+ "fields": [
258
+ {
259
+ "name": "x",
260
+ "doc": "",
261
+ "types": [
262
+ "number"
263
+ ],
264
+ "is_optional": "False"
265
+ },
266
+ {
267
+ "name": "y",
268
+ "doc": "",
269
+ "types": [
270
+ "number"
271
+ ],
272
+ "is_optional": "False"
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "name": "time",
278
+ "doc": "",
279
+ "types": [
280
+ "number"
281
+ ],
282
+ "is_optional": "False"
283
+ }
284
+ ]
285
+ },
286
+ {
287
+ "name": "two_finger",
288
+ "brief": "",
289
+ "description": "",
290
+ "types": [
291
+ "{ tap?: boolean; double_tap?: boolean; long_press?: boolean; repeated?: boolean; swipe_left?: boolean; swipe_right?: boolean; swipe_up?: boolean; swipe_down?: boolean; pinch?: { center: { x: number; y: number; }; ratio: number; }; }"
292
+ ],
293
+ "is_optional": "True",
294
+ "fields": [
295
+ {
296
+ "name": "tap",
297
+ "doc": "",
298
+ "types": [
299
+ "boolean"
300
+ ],
301
+ "is_optional": "True"
302
+ },
303
+ {
304
+ "name": "double_tap",
305
+ "doc": "",
306
+ "types": [
307
+ "boolean"
308
+ ],
309
+ "is_optional": "True"
310
+ },
311
+ {
312
+ "name": "long_press",
313
+ "doc": "",
314
+ "types": [
315
+ "boolean"
316
+ ],
317
+ "is_optional": "True"
318
+ },
319
+ {
320
+ "name": "repeated",
321
+ "doc": "",
322
+ "types": [
323
+ "boolean"
324
+ ],
325
+ "is_optional": "True"
326
+ },
327
+ {
328
+ "name": "swipe_left",
329
+ "doc": "",
330
+ "types": [
331
+ "boolean"
332
+ ],
333
+ "is_optional": "True"
334
+ },
335
+ {
336
+ "name": "swipe_right",
337
+ "doc": "",
338
+ "types": [
339
+ "boolean"
340
+ ],
341
+ "is_optional": "True"
342
+ },
343
+ {
344
+ "name": "swipe_up",
345
+ "doc": "",
346
+ "types": [
347
+ "boolean"
348
+ ],
349
+ "is_optional": "True"
350
+ },
351
+ {
352
+ "name": "swipe_down",
353
+ "doc": "",
354
+ "types": [
355
+ "boolean"
356
+ ],
357
+ "is_optional": "True"
358
+ },
359
+ {
360
+ "name": "pinch",
361
+ "doc": "",
362
+ "types": [
363
+ "{ center: { x: number; y: number; }; ratio: number; }"
364
+ ],
365
+ "is_optional": "True",
366
+ "fields": [
367
+ {
368
+ "name": "center",
369
+ "doc": "",
370
+ "types": [
371
+ "{ x: number; y: number; }"
372
+ ],
373
+ "is_optional": "False",
374
+ "fields": [
375
+ {
376
+ "name": "x",
377
+ "doc": "",
378
+ "types": [
379
+ "number"
380
+ ],
381
+ "is_optional": "False"
382
+ },
383
+ {
384
+ "name": "y",
385
+ "doc": "",
386
+ "types": [
387
+ "number"
388
+ ],
389
+ "is_optional": "False"
390
+ }
391
+ ]
392
+ },
393
+ {
394
+ "name": "ratio",
395
+ "doc": "",
396
+ "types": [
397
+ "number"
398
+ ],
399
+ "is_optional": "False"
400
+ }
401
+ ]
402
+ }
403
+ ]
404
+ }
405
+ ]
15
406
  },
16
407
  {
17
408
  "type": "VARIABLE",
18
409
  "name": "SETTINGS",
410
+ "brief": "",
411
+ "description": "",
19
412
  "types": [
20
413
  "{ action_id: Hash; tap_threshold: number; double_tap_interval: number; swipe_threshold: number; swipe_time: number; long_press_time: number; multi_touch: boolean; }"
21
414
  ],
@@ -81,8 +474,9 @@
81
474
  {
82
475
  "type": "FUNCTION",
83
476
  "name": "create",
84
- "brief": "",
85
- "description": "",
477
+ "brief": "Create a gesture instance. Use this if you need multiple gesture detectors that each needs",
478
+ "description": "Create a gesture instance. Use this if you need multiple gesture detectors that each needs\nunique settings",
479
+ "docSource": "upstream",
86
480
  "parameters": [
87
481
  {
88
482
  "name": "settings",
@@ -164,8 +558,9 @@
164
558
  {
165
559
  "type": "FUNCTION",
166
560
  "name": "on_input",
167
- "brief": "",
168
- "description": "",
561
+ "brief": "Forward calls to on_input to this function to detect supported gestures",
562
+ "description": "Forward calls to on_input to this function to detect supported gestures",
563
+ "docSource": "upstream",
169
564
  "parameters": [
170
565
  {
171
566
  "name": "this",
@@ -8,6 +8,8 @@
8
8
  {
9
9
  "type": "VARIABLE",
10
10
  "name": "KEYBOARD_INPUT",
11
+ "brief": "",
12
+ "description": "",
11
13
  "types": [
12
14
  "Hash"
13
15
  ]
@@ -8,8 +8,9 @@
8
8
  {
9
9
  "type": "FUNCTION",
10
10
  "name": "bind",
11
- "brief": "",
12
- "description": "",
11
+ "brief": "Bind an input trigger to an action, optionally associating the binding",
12
+ "description": "Bind an input trigger to an action, optionally associating the binding\nto a specific player",
13
+ "docSource": "upstream",
13
14
  "parameters": [
14
15
  {
15
16
  "name": "trigger",
@@ -57,8 +58,9 @@
57
58
  {
58
59
  "type": "FUNCTION",
59
60
  "name": "unbind",
60
- "brief": "",
61
- "description": "",
61
+ "brief": "Unbind (remove) an existing input binding",
62
+ "description": "Unbind (remove) an existing input binding",
63
+ "docSource": "upstream",
62
64
  "parameters": [
63
65
  {
64
66
  "name": "trigger",
@@ -82,8 +84,9 @@
82
84
  {
83
85
  "type": "FUNCTION",
84
86
  "name": "unbind_all",
85
- "brief": "",
86
- "description": "",
87
+ "brief": "Unbind (remove) all input trigger bindings",
88
+ "description": "Unbind (remove) all input trigger bindings",
89
+ "docSource": "upstream",
87
90
  "parameters": [
88
91
  {
89
92
  "name": "player",
@@ -99,8 +102,9 @@
99
102
  {
100
103
  "type": "FUNCTION",
101
104
  "name": "on_input",
102
- "brief": "",
103
- "description": "",
105
+ "brief": "Handle incoming input trigger from a script by finding an binding and",
106
+ "description": "Handle incoming input trigger from a script by finding an binding and\nreturning the bound action",
107
+ "docSource": "upstream",
104
108
  "parameters": [
105
109
  {
106
110
  "name": "trigger",
@@ -8,6 +8,8 @@
8
8
  {
9
9
  "type": "VARIABLE",
10
10
  "name": "BUTTON",
11
+ "brief": "",
12
+ "description": "",
11
13
  "types": [
12
14
  "Hash"
13
15
  ]
@@ -15,6 +17,8 @@
15
17
  {
16
18
  "type": "VARIABLE",
17
19
  "name": "ANALOG",
20
+ "brief": "",
21
+ "description": "",
18
22
  "types": [
19
23
  "Hash"
20
24
  ]
@@ -22,6 +26,8 @@
22
26
  {
23
27
  "type": "VARIABLE",
24
28
  "name": "BUTTON_PRESSED",
29
+ "brief": "",
30
+ "description": "",
25
31
  "types": [
26
32
  "Hash"
27
33
  ]
@@ -29,6 +35,8 @@
29
35
  {
30
36
  "type": "VARIABLE",
31
37
  "name": "BUTTON_RELEASED",
38
+ "brief": "",
39
+ "description": "",
32
40
  "types": [
33
41
  "Hash"
34
42
  ]
@@ -36,6 +44,8 @@
36
44
  {
37
45
  "type": "VARIABLE",
38
46
  "name": "ANALOG_PRESSED",
47
+ "brief": "",
48
+ "description": "",
39
49
  "types": [
40
50
  "Hash"
41
51
  ]
@@ -43,6 +53,8 @@
43
53
  {
44
54
  "type": "VARIABLE",
45
55
  "name": "ANALOG_RELEASED",
56
+ "brief": "",
57
+ "description": "",
46
58
  "types": [
47
59
  "Hash"
48
60
  ]
@@ -50,6 +62,8 @@
50
62
  {
51
63
  "type": "VARIABLE",
52
64
  "name": "ANALOG_MOVED",
65
+ "brief": "",
66
+ "description": "",
53
67
  "types": [
54
68
  "Hash"
55
69
  ]
@@ -57,6 +71,8 @@
57
71
  {
58
72
  "type": "VARIABLE",
59
73
  "name": "ANALOG_LEFT",
74
+ "brief": "",
75
+ "description": "",
60
76
  "types": [
61
77
  "Hash"
62
78
  ]
@@ -64,6 +80,8 @@
64
80
  {
65
81
  "type": "VARIABLE",
66
82
  "name": "ANALOG_RIGHT",
83
+ "brief": "",
84
+ "description": "",
67
85
  "types": [
68
86
  "Hash"
69
87
  ]
@@ -71,6 +89,8 @@
71
89
  {
72
90
  "type": "VARIABLE",
73
91
  "name": "ANALOG_UP",
92
+ "brief": "",
93
+ "description": "",
74
94
  "types": [
75
95
  "Hash"
76
96
  ]
@@ -78,23 +98,59 @@
78
98
  {
79
99
  "type": "VARIABLE",
80
100
  "name": "ANALOG_DOWN",
101
+ "brief": "",
102
+ "description": "",
81
103
  "types": [
82
104
  "Hash"
83
105
  ]
84
106
  },
85
107
  {
86
108
  "type": "TYPEDEF",
87
- "name": "OnscreenInstance"
109
+ "name": "OnscreenInstance",
110
+ "properties": [
111
+ {
112
+ "name": "reset",
113
+ "brief": "",
114
+ "description": "",
115
+ "types": [
116
+ "() => void"
117
+ ]
118
+ },
119
+ {
120
+ "name": "register_button",
121
+ "brief": "",
122
+ "description": "",
123
+ "types": [
124
+ "(node: Opaque<\"node\">, settings: {} | undefined, fn: (action: Hash, node: Opaque<\"node\">, touch: {}) => void) => void"
125
+ ]
126
+ },
127
+ {
128
+ "name": "register_analog",
129
+ "brief": "",
130
+ "description": "",
131
+ "types": [
132
+ "(node: Opaque<\"node\">, settings: { radius?: number; threshold?: number; } | undefined, fn: (action: Hash, node: Opaque<\"node\">, touch: {}) => void) => void"
133
+ ]
134
+ },
135
+ {
136
+ "name": "on_input",
137
+ "brief": "",
138
+ "description": "",
139
+ "types": [
140
+ "(action_id: Hash, action: {}) => boolean"
141
+ ]
142
+ }
143
+ ]
88
144
  },
89
145
  {
90
146
  "type": "FUNCTION",
91
147
  "name": "create",
92
- "brief": "",
93
- "description": "",
148
+ "brief": "Create an instance of the onscreen controls.",
149
+ "description": "Create an instance of the onscreen controls.",
94
150
  "parameters": [
95
151
  {
96
152
  "name": "config",
97
- "doc": "",
153
+ "doc": "Optional settings. `touch` is the action id bound to single touch.",
98
154
  "types": [
99
155
  "{ touch: Hash; }"
100
156
  ],
@@ -114,7 +170,7 @@
114
170
  "returnvalues": [
115
171
  {
116
172
  "name": "",
117
- "doc": "",
173
+ "doc": "The instance the register and input functions operate on.",
118
174
  "types": [
119
175
  "OnscreenInstance"
120
176
  ]