dualsense-ts 2.0.0 → 2.0.3

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 (46) hide show
  1. package/dist/dualsense.js +21 -21
  2. package/dist/dualsense.js.map +1 -1
  3. package/dist/hid/dualsense_hid.js +82 -82
  4. package/dist/hid/dualsense_hid.js.map +1 -1
  5. package/dist/input.d.ts +2 -1
  6. package/dist/input.d.ts.map +1 -1
  7. package/dist/input.js +5 -5
  8. package/dist/input.js.map +1 -1
  9. package/docs/.nojekyll +1 -0
  10. package/docs/Accelerometer.md +13 -0
  11. package/docs/Analog.md +1712 -0
  12. package/docs/AnalogParams.md +105 -0
  13. package/docs/Axis.md +1577 -0
  14. package/docs/Brightness.md +39 -0
  15. package/docs/CommandScopeA.md +83 -0
  16. package/docs/CommandScopeB.md +72 -0
  17. package/docs/Dpad.md +1591 -0
  18. package/docs/DpadParams.md +116 -0
  19. package/docs/DualSenseCommand.md +1448 -0
  20. package/docs/Dualsense.md +1690 -0
  21. package/docs/DualsenseHID.md +1158 -0
  22. package/docs/DualsenseHIDState.md +457 -0
  23. package/docs/DualsenseParams.md +215 -0
  24. package/docs/Exports.md +214 -0
  25. package/docs/Gyroscope.md +13 -0
  26. package/docs/Haptic.md +27 -0
  27. package/docs/Home.md +105 -0
  28. package/docs/Indicator.md +52 -0
  29. package/docs/Input.md +1382 -0
  30. package/docs/InputId.md +457 -0
  31. package/docs/InputParams.md +62 -0
  32. package/docs/LedOptions.md +50 -0
  33. package/docs/Momentary.md +1549 -0
  34. package/docs/Motion.md +38 -0
  35. package/docs/Mute.md +1558 -0
  36. package/docs/PlayerID.md +61 -0
  37. package/docs/PulseOptions.md +39 -0
  38. package/docs/Touchpad.md +1613 -0
  39. package/docs/Trigger.md +1620 -0
  40. package/docs/TriggerMode.md +116 -0
  41. package/docs/Unisense.md +1591 -0
  42. package/docs/UnisenseParams.md +105 -0
  43. package/docs/_Sidebar.md +4 -0
  44. package/package.json +7 -2
  45. package/src/input.ts +6 -6
  46. package/tsconfig.json +10 -1
@@ -0,0 +1,457 @@
1
+ # Enumeration: InputId
2
+
3
+ ## Table of contents
4
+
5
+ ### Enumeration members
6
+
7
+ - [AccelX](../wiki/InputId#accelx)
8
+ - [AccelY](../wiki/InputId#accely)
9
+ - [AccelZ](../wiki/InputId#accelz)
10
+ - [Circle](../wiki/InputId#circle)
11
+ - [Create](../wiki/InputId#create)
12
+ - [Cross](../wiki/InputId#cross)
13
+ - [Down](../wiki/InputId#down)
14
+ - [Dpad](../wiki/InputId#dpad)
15
+ - [GyroX](../wiki/InputId#gyrox)
16
+ - [GyroY](../wiki/InputId#gyroy)
17
+ - [GyroZ](../wiki/InputId#gyroz)
18
+ - [Left](../wiki/InputId#left)
19
+ - [LeftAnalogButton](../wiki/InputId#leftanalogbutton)
20
+ - [LeftAnalogX](../wiki/InputId#leftanalogx)
21
+ - [LeftAnalogY](../wiki/InputId#leftanalogy)
22
+ - [LeftBumper](../wiki/InputId#leftbumper)
23
+ - [LeftTrigger](../wiki/InputId#lefttrigger)
24
+ - [LeftTriggerButton](../wiki/InputId#lefttriggerbutton)
25
+ - [Mute](../wiki/InputId#mute)
26
+ - [Options](../wiki/InputId#options)
27
+ - [Playstation](../wiki/InputId#playstation)
28
+ - [Right](../wiki/InputId#right)
29
+ - [RightAnalogButton](../wiki/InputId#rightanalogbutton)
30
+ - [RightAnalogX](../wiki/InputId#rightanalogx)
31
+ - [RightAnalogY](../wiki/InputId#rightanalogy)
32
+ - [RightBumper](../wiki/InputId#rightbumper)
33
+ - [RightTrigger](../wiki/InputId#righttrigger)
34
+ - [RightTriggerButton](../wiki/InputId#righttriggerbutton)
35
+ - [Square](../wiki/InputId#square)
36
+ - [Status](../wiki/InputId#status)
37
+ - [TouchButton](../wiki/InputId#touchbutton)
38
+ - [TouchContact0](../wiki/InputId#touchcontact0)
39
+ - [TouchContact1](../wiki/InputId#touchcontact1)
40
+ - [TouchId0](../wiki/InputId#touchid0)
41
+ - [TouchId1](../wiki/InputId#touchid1)
42
+ - [TouchX0](../wiki/InputId#touchx0)
43
+ - [TouchX1](../wiki/InputId#touchx1)
44
+ - [TouchY0](../wiki/InputId#touchy0)
45
+ - [TouchY1](../wiki/InputId#touchy1)
46
+ - [Triangle](../wiki/InputId#triangle)
47
+ - [Up](../wiki/InputId#up)
48
+
49
+ ## Enumeration members
50
+
51
+ ### AccelX
52
+
53
+ • **AccelX** = `"AccelX"`
54
+
55
+ #### Defined in
56
+
57
+ [src/hid/ids.ts:52](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L52)
58
+
59
+ ___
60
+
61
+ ### AccelY
62
+
63
+ • **AccelY** = `"AccelY"`
64
+
65
+ #### Defined in
66
+
67
+ [src/hid/ids.ts:53](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L53)
68
+
69
+ ___
70
+
71
+ ### AccelZ
72
+
73
+ • **AccelZ** = `"AccelZ"`
74
+
75
+ #### Defined in
76
+
77
+ [src/hid/ids.ts:54](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L54)
78
+
79
+ ___
80
+
81
+ ### Circle
82
+
83
+ • **Circle** = `"Circle"`
84
+
85
+ #### Defined in
86
+
87
+ [src/hid/ids.ts:10](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L10)
88
+
89
+ ___
90
+
91
+ ### Create
92
+
93
+ • **Create** = `"Create"`
94
+
95
+ #### Defined in
96
+
97
+ [src/hid/ids.ts:4](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L4)
98
+
99
+ ___
100
+
101
+ ### Cross
102
+
103
+ • **Cross** = `"Cross"`
104
+
105
+ #### Defined in
106
+
107
+ [src/hid/ids.ts:11](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L11)
108
+
109
+ ___
110
+
111
+ ### Down
112
+
113
+ • **Down** = `"Down"`
114
+
115
+ #### Defined in
116
+
117
+ [src/hid/ids.ts:16](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L16)
118
+
119
+ ___
120
+
121
+ ### Dpad
122
+
123
+ • **Dpad** = `"Dpad"`
124
+
125
+ #### Defined in
126
+
127
+ [src/hid/ids.ts:14](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L14)
128
+
129
+ ___
130
+
131
+ ### GyroX
132
+
133
+ • **GyroX** = `"GyroX"`
134
+
135
+ #### Defined in
136
+
137
+ [src/hid/ids.ts:48](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L48)
138
+
139
+ ___
140
+
141
+ ### GyroY
142
+
143
+ • **GyroY** = `"GyroY"`
144
+
145
+ #### Defined in
146
+
147
+ [src/hid/ids.ts:49](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L49)
148
+
149
+ ___
150
+
151
+ ### GyroZ
152
+
153
+ • **GyroZ** = `"GyroZ"`
154
+
155
+ #### Defined in
156
+
157
+ [src/hid/ids.ts:50](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L50)
158
+
159
+ ___
160
+
161
+ ### Left
162
+
163
+ • **Left** = `"Left"`
164
+
165
+ #### Defined in
166
+
167
+ [src/hid/ids.ts:17](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L17)
168
+
169
+ ___
170
+
171
+ ### LeftAnalogButton
172
+
173
+ • **LeftAnalogButton** = `"L3"`
174
+
175
+ #### Defined in
176
+
177
+ [src/hid/ids.ts:32](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L32)
178
+
179
+ ___
180
+
181
+ ### LeftAnalogX
182
+
183
+ • **LeftAnalogX** = `"LX"`
184
+
185
+ #### Defined in
186
+
187
+ [src/hid/ids.ts:43](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L43)
188
+
189
+ ___
190
+
191
+ ### LeftAnalogY
192
+
193
+ • **LeftAnalogY** = `"LY"`
194
+
195
+ #### Defined in
196
+
197
+ [src/hid/ids.ts:44](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L44)
198
+
199
+ ___
200
+
201
+ ### LeftBumper
202
+
203
+ • **LeftBumper** = `"L1"`
204
+
205
+ #### Defined in
206
+
207
+ [src/hid/ids.ts:40](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L40)
208
+
209
+ ___
210
+
211
+ ### LeftTrigger
212
+
213
+ • **LeftTrigger** = `"L2"`
214
+
215
+ #### Defined in
216
+
217
+ [src/hid/ids.ts:35](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L35)
218
+
219
+ ___
220
+
221
+ ### LeftTriggerButton
222
+
223
+ • **LeftTriggerButton** = `"L2Button"`
224
+
225
+ #### Defined in
226
+
227
+ [src/hid/ids.ts:37](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L37)
228
+
229
+ ___
230
+
231
+ ### Mute
232
+
233
+ • **Mute** = `"Mute"`
234
+
235
+ #### Defined in
236
+
237
+ [src/hid/ids.ts:6](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L6)
238
+
239
+ ___
240
+
241
+ ### Options
242
+
243
+ • **Options** = `"Options"`
244
+
245
+ #### Defined in
246
+
247
+ [src/hid/ids.ts:3](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L3)
248
+
249
+ ___
250
+
251
+ ### Playstation
252
+
253
+ • **Playstation** = `"Playstation"`
254
+
255
+ #### Defined in
256
+
257
+ [src/hid/ids.ts:5](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L5)
258
+
259
+ ___
260
+
261
+ ### Right
262
+
263
+ • **Right** = `"Right"`
264
+
265
+ #### Defined in
266
+
267
+ [src/hid/ids.ts:18](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L18)
268
+
269
+ ___
270
+
271
+ ### RightAnalogButton
272
+
273
+ • **RightAnalogButton** = `"R3"`
274
+
275
+ #### Defined in
276
+
277
+ [src/hid/ids.ts:33](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L33)
278
+
279
+ ___
280
+
281
+ ### RightAnalogX
282
+
283
+ • **RightAnalogX** = `"RX"`
284
+
285
+ #### Defined in
286
+
287
+ [src/hid/ids.ts:45](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L45)
288
+
289
+ ___
290
+
291
+ ### RightAnalogY
292
+
293
+ • **RightAnalogY** = `"RY"`
294
+
295
+ #### Defined in
296
+
297
+ [src/hid/ids.ts:46](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L46)
298
+
299
+ ___
300
+
301
+ ### RightBumper
302
+
303
+ • **RightBumper** = `"R1"`
304
+
305
+ #### Defined in
306
+
307
+ [src/hid/ids.ts:41](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L41)
308
+
309
+ ___
310
+
311
+ ### RightTrigger
312
+
313
+ • **RightTrigger** = `"R2"`
314
+
315
+ #### Defined in
316
+
317
+ [src/hid/ids.ts:36](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L36)
318
+
319
+ ___
320
+
321
+ ### RightTriggerButton
322
+
323
+ • **RightTriggerButton** = `"R2Button"`
324
+
325
+ #### Defined in
326
+
327
+ [src/hid/ids.ts:38](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L38)
328
+
329
+ ___
330
+
331
+ ### Square
332
+
333
+ • **Square** = `"Square"`
334
+
335
+ #### Defined in
336
+
337
+ [src/hid/ids.ts:12](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L12)
338
+
339
+ ___
340
+
341
+ ### Status
342
+
343
+ • **Status** = `"Status"`
344
+
345
+ #### Defined in
346
+
347
+ [src/hid/ids.ts:7](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L7)
348
+
349
+ ___
350
+
351
+ ### TouchButton
352
+
353
+ • **TouchButton** = `"TouchButton"`
354
+
355
+ #### Defined in
356
+
357
+ [src/hid/ids.ts:20](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L20)
358
+
359
+ ___
360
+
361
+ ### TouchContact0
362
+
363
+ • **TouchContact0** = `"TouchContact0"`
364
+
365
+ #### Defined in
366
+
367
+ [src/hid/ids.ts:24](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L24)
368
+
369
+ ___
370
+
371
+ ### TouchContact1
372
+
373
+ • **TouchContact1** = `"TouchContact1"`
374
+
375
+ #### Defined in
376
+
377
+ [src/hid/ids.ts:29](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L29)
378
+
379
+ ___
380
+
381
+ ### TouchId0
382
+
383
+ • **TouchId0** = `"TouchId0"`
384
+
385
+ #### Defined in
386
+
387
+ [src/hid/ids.ts:25](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L25)
388
+
389
+ ___
390
+
391
+ ### TouchId1
392
+
393
+ • **TouchId1** = `"TouchId1"`
394
+
395
+ #### Defined in
396
+
397
+ [src/hid/ids.ts:30](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L30)
398
+
399
+ ___
400
+
401
+ ### TouchX0
402
+
403
+ • **TouchX0** = `"TouchX0"`
404
+
405
+ #### Defined in
406
+
407
+ [src/hid/ids.ts:22](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L22)
408
+
409
+ ___
410
+
411
+ ### TouchX1
412
+
413
+ • **TouchX1** = `"TouchX1"`
414
+
415
+ #### Defined in
416
+
417
+ [src/hid/ids.ts:27](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L27)
418
+
419
+ ___
420
+
421
+ ### TouchY0
422
+
423
+ • **TouchY0** = `"TouchY0"`
424
+
425
+ #### Defined in
426
+
427
+ [src/hid/ids.ts:23](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L23)
428
+
429
+ ___
430
+
431
+ ### TouchY1
432
+
433
+ • **TouchY1** = `"TouchY1"`
434
+
435
+ #### Defined in
436
+
437
+ [src/hid/ids.ts:28](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L28)
438
+
439
+ ___
440
+
441
+ ### Triangle
442
+
443
+ • **Triangle** = `"Triangle"`
444
+
445
+ #### Defined in
446
+
447
+ [src/hid/ids.ts:9](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L9)
448
+
449
+ ___
450
+
451
+ ### Up
452
+
453
+ • **Up** = `"Up"`
454
+
455
+ #### Defined in
456
+
457
+ [src/hid/ids.ts:15](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/ids.ts#L15)
@@ -0,0 +1,62 @@
1
+ # Interface: InputParams
2
+
3
+ ## Hierarchy
4
+
5
+ - **`InputParams`**
6
+
7
+ ↳ [`DualsenseParams`](../wiki/DualsenseParams)
8
+
9
+ ↳ [`AnalogParams`](../wiki/AnalogParams)
10
+
11
+ ↳ [`DpadParams`](../wiki/DpadParams)
12
+
13
+ ↳ [`UnisenseParams`](../wiki/UnisenseParams)
14
+
15
+ ## Table of contents
16
+
17
+ ### Properties
18
+
19
+ - [icon](../wiki/InputParams#icon)
20
+ - [name](../wiki/InputParams#name)
21
+ - [parent](../wiki/InputParams#parent)
22
+ - [threshold](../wiki/InputParams#threshold)
23
+
24
+ ## Properties
25
+
26
+ ### icon
27
+
28
+ • `Optional` **icon**: `string`
29
+
30
+ #### Defined in
31
+
32
+ [src/input.ts:6](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/input.ts#L6)
33
+
34
+ ___
35
+
36
+ ### name
37
+
38
+ • `Optional` **name**: `string`
39
+
40
+ #### Defined in
41
+
42
+ [src/input.ts:5](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/input.ts#L5)
43
+
44
+ ___
45
+
46
+ ### parent
47
+
48
+ • `Optional` **parent**: [`Input`](../wiki/Input)<`unknown`\>
49
+
50
+ #### Defined in
51
+
52
+ [src/input.ts:8](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/input.ts#L8)
53
+
54
+ ___
55
+
56
+ ### threshold
57
+
58
+ • `Optional` **threshold**: `number`
59
+
60
+ #### Defined in
61
+
62
+ [src/input.ts:7](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/input.ts#L7)
@@ -0,0 +1,50 @@
1
+ # Enumeration: LedOptions
2
+
3
+ ## Table of contents
4
+
5
+ ### Enumeration members
6
+
7
+ - [Both](../wiki/LedOptions#both)
8
+ - [Off](../wiki/LedOptions#off)
9
+ - [PlayerLedBrightness](../wiki/LedOptions#playerledbrightness)
10
+ - [Uninterruptible](../wiki/LedOptions#uninterruptible)
11
+
12
+ ## Enumeration members
13
+
14
+ ### Both
15
+
16
+ • **Both** = `3`
17
+
18
+ #### Defined in
19
+
20
+ [src/hid/command.ts:5](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/command.ts#L5)
21
+
22
+ ___
23
+
24
+ ### Off
25
+
26
+ • **Off** = `0`
27
+
28
+ #### Defined in
29
+
30
+ [src/hid/command.ts:2](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/command.ts#L2)
31
+
32
+ ___
33
+
34
+ ### PlayerLedBrightness
35
+
36
+ • **PlayerLedBrightness** = `1`
37
+
38
+ #### Defined in
39
+
40
+ [src/hid/command.ts:3](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/command.ts#L3)
41
+
42
+ ___
43
+
44
+ ### Uninterruptible
45
+
46
+ • **Uninterruptible** = `2`
47
+
48
+ #### Defined in
49
+
50
+ [src/hid/command.ts:4](https://github.com/nsfm/dualsense-ts/blob/6dc1604/src/hid/command.ts#L4)