dualsense-ts 2.0.13 → 2.1.30

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 (75) hide show
  1. package/README.md +31 -29
  2. package/dist/dualsense.d.ts.map +1 -1
  3. package/dist/dualsense.js +13 -3
  4. package/dist/dualsense.js.map +1 -1
  5. package/dist/elements/analog.js +2 -2
  6. package/dist/elements/increment.d.ts +6 -0
  7. package/dist/elements/increment.d.ts.map +1 -0
  8. package/dist/elements/increment.js +15 -0
  9. package/dist/elements/increment.js.map +1 -0
  10. package/dist/elements/index.d.ts +2 -0
  11. package/dist/elements/index.d.ts.map +1 -1
  12. package/dist/elements/index.js +2 -0
  13. package/dist/elements/index.js.map +1 -1
  14. package/dist/elements/touch.d.ts +13 -0
  15. package/dist/elements/touch.d.ts.map +1 -0
  16. package/dist/elements/touch.js +22 -0
  17. package/dist/elements/touch.js.map +1 -0
  18. package/dist/elements/touchpad.d.ts +3 -6
  19. package/dist/elements/touchpad.d.ts.map +1 -1
  20. package/dist/elements/touchpad.js +4 -11
  21. package/dist/elements/touchpad.js.map +1 -1
  22. package/dist/elements/unisense.d.ts.map +1 -1
  23. package/dist/elements/unisense.js +2 -2
  24. package/dist/elements/unisense.js.map +1 -1
  25. package/dist/hid/dualsense_hid.d.ts +1 -1
  26. package/dist/hid/dualsense_hid.d.ts.map +1 -1
  27. package/dist/hid/dualsense_hid.js +7 -7
  28. package/dist/hid/dualsense_hid.js.map +1 -1
  29. package/dist/input.d.ts +2 -2
  30. package/dist/input.d.ts.map +1 -1
  31. package/dist/input.js +4 -4
  32. package/dist/input.js.map +1 -1
  33. package/docs/Analog.md +90 -81
  34. package/docs/AnalogParams.md +7 -7
  35. package/docs/Axis.md +79 -72
  36. package/docs/Brightness.md +3 -3
  37. package/docs/CommandScopeA.md +7 -7
  38. package/docs/CommandScopeB.md +6 -6
  39. package/docs/Dpad.md +81 -74
  40. package/docs/DpadParams.md +8 -8
  41. package/docs/DualSenseCommand.md +45 -45
  42. package/docs/Dualsense.md +90 -83
  43. package/docs/DualsenseHID.md +42 -47
  44. package/docs/DualsenseHIDState.md +41 -41
  45. package/docs/DualsenseParams.md +17 -17
  46. package/docs/Exports.md +19 -16
  47. package/docs/Haptic.md +1 -1
  48. package/docs/Home.md +31 -29
  49. package/docs/Increment.md +1554 -0
  50. package/docs/Indicator.md +2 -2
  51. package/docs/Input.md +79 -70
  52. package/docs/InputId.md +41 -41
  53. package/docs/InputParams.md +4 -4
  54. package/docs/LedOptions.md +4 -4
  55. package/docs/Momentary.md +77 -70
  56. package/docs/Motion.md +2 -2
  57. package/docs/Mute.md +79 -72
  58. package/docs/PlayerID.md +5 -5
  59. package/docs/PulseOptions.md +3 -3
  60. package/docs/Touch.md +1781 -0
  61. package/docs/Touchpad.md +94 -120
  62. package/docs/Trigger.md +82 -75
  63. package/docs/TriggerMode.md +10 -10
  64. package/docs/Unisense.md +81 -74
  65. package/docs/UnisenseParams.md +7 -7
  66. package/package.json +2 -2
  67. package/src/dualsense.ts +22 -4
  68. package/src/elements/analog.ts +2 -2
  69. package/src/elements/increment.ts +9 -0
  70. package/src/elements/index.ts +2 -0
  71. package/src/elements/touch.ts +16 -0
  72. package/src/elements/touchpad.ts +9 -23
  73. package/src/elements/unisense.ts +4 -2
  74. package/src/hid/dualsense_hid.ts +13 -7
  75. package/src/input.ts +8 -4
package/docs/Dualsense.md CHANGED
@@ -100,7 +100,7 @@
100
100
 
101
101
  #### Defined in
102
102
 
103
- [src/dualsense.ts:61](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L61)
103
+ [src/dualsense.ts:61](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L61)
104
104
 
105
105
  ## Properties
106
106
 
@@ -129,7 +129,7 @@
129
129
 
130
130
  #### Defined in
131
131
 
132
- [src/input.ts:124](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L124)
132
+ [src/input.ts:128](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L128)
133
133
 
134
134
  ___
135
135
 
@@ -143,7 +143,7 @@ ___
143
143
 
144
144
  #### Defined in
145
145
 
146
- [src/input.ts:158](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L158)
146
+ [src/input.ts:162](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L162)
147
147
 
148
148
  ___
149
149
 
@@ -157,7 +157,7 @@ ___
157
157
 
158
158
  #### Defined in
159
159
 
160
- [src/input.ts:153](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L153)
160
+ [src/input.ts:157](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L157)
161
161
 
162
162
  ___
163
163
 
@@ -171,7 +171,7 @@ ___
171
171
 
172
172
  #### Defined in
173
173
 
174
- [src/input.ts:150](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L150)
174
+ [src/input.ts:154](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L154)
175
175
 
176
176
  ___
177
177
 
@@ -185,7 +185,7 @@ ___
185
185
 
186
186
  #### Defined in
187
187
 
188
- [src/input.ts:156](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L156)
188
+ [src/input.ts:160](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L160)
189
189
 
190
190
  ___
191
191
 
@@ -195,7 +195,7 @@ ___
195
195
 
196
196
  #### Defined in
197
197
 
198
- [src/dualsense.ts:41](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L41)
198
+ [src/dualsense.ts:41](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L41)
199
199
 
200
200
  ___
201
201
 
@@ -205,7 +205,7 @@ ___
205
205
 
206
206
  #### Defined in
207
207
 
208
- [src/dualsense.ts:38](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L38)
208
+ [src/dualsense.ts:38](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L38)
209
209
 
210
210
  ___
211
211
 
@@ -215,7 +215,7 @@ ___
215
215
 
216
216
  #### Defined in
217
217
 
218
- [src/dualsense.ts:42](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L42)
218
+ [src/dualsense.ts:42](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L42)
219
219
 
220
220
  ___
221
221
 
@@ -225,7 +225,7 @@ ___
225
225
 
226
226
  #### Defined in
227
227
 
228
- [src/dualsense.ts:45](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L45)
228
+ [src/dualsense.ts:45](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L45)
229
229
 
230
230
  ___
231
231
 
@@ -235,7 +235,7 @@ ___
235
235
 
236
236
  #### Defined in
237
237
 
238
- [src/dualsense.ts:52](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L52)
238
+ [src/dualsense.ts:52](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L52)
239
239
 
240
240
  ___
241
241
 
@@ -249,7 +249,7 @@ ___
249
249
 
250
250
  #### Defined in
251
251
 
252
- [src/input.ts:58](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L58)
252
+ [src/input.ts:58](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L58)
253
253
 
254
254
  ___
255
255
 
@@ -263,7 +263,7 @@ ___
263
263
 
264
264
  #### Defined in
265
265
 
266
- [src/input.ts:61](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L61)
266
+ [src/input.ts:61](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L61)
267
267
 
268
268
  ___
269
269
 
@@ -277,7 +277,7 @@ ___
277
277
 
278
278
  #### Defined in
279
279
 
280
- [src/input.ts:64](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L64)
280
+ [src/input.ts:64](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L64)
281
281
 
282
282
  ___
283
283
 
@@ -287,7 +287,7 @@ ___
287
287
 
288
288
  #### Defined in
289
289
 
290
- [src/dualsense.ts:47](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L47)
290
+ [src/dualsense.ts:47](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L47)
291
291
 
292
292
  ___
293
293
 
@@ -297,7 +297,7 @@ ___
297
297
 
298
298
  #### Defined in
299
299
 
300
- [src/dualsense.ts:35](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L35)
300
+ [src/dualsense.ts:35](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L35)
301
301
 
302
302
  ___
303
303
 
@@ -307,7 +307,7 @@ ___
307
307
 
308
308
  #### Defined in
309
309
 
310
- [src/dualsense.ts:37](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L37)
310
+ [src/dualsense.ts:37](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L37)
311
311
 
312
312
  ___
313
313
 
@@ -317,7 +317,7 @@ ___
317
317
 
318
318
  #### Defined in
319
319
 
320
- [src/dualsense.ts:34](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L34)
320
+ [src/dualsense.ts:34](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L34)
321
321
 
322
322
  ___
323
323
 
@@ -327,7 +327,7 @@ ___
327
327
 
328
328
  #### Defined in
329
329
 
330
- [src/dualsense.ts:48](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L48)
330
+ [src/dualsense.ts:48](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L48)
331
331
 
332
332
  ___
333
333
 
@@ -337,7 +337,7 @@ ___
337
337
 
338
338
  #### Defined in
339
339
 
340
- [src/dualsense.ts:43](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L43)
340
+ [src/dualsense.ts:43](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L43)
341
341
 
342
342
  ___
343
343
 
@@ -351,7 +351,7 @@ ___
351
351
 
352
352
  #### Defined in
353
353
 
354
- [src/dualsense.ts:32](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L32)
354
+ [src/dualsense.ts:32](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L32)
355
355
 
356
356
  ___
357
357
 
@@ -365,7 +365,7 @@ ___
365
365
 
366
366
  #### Defined in
367
367
 
368
- [src/input.ts:67](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L67)
368
+ [src/input.ts:67](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L67)
369
369
 
370
370
  ___
371
371
 
@@ -375,7 +375,7 @@ ___
375
375
 
376
376
  #### Defined in
377
377
 
378
- [src/dualsense.ts:50](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L50)
378
+ [src/dualsense.ts:50](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L50)
379
379
 
380
380
  ___
381
381
 
@@ -385,7 +385,7 @@ ___
385
385
 
386
386
  #### Defined in
387
387
 
388
- [src/dualsense.ts:40](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L40)
388
+ [src/dualsense.ts:40](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L40)
389
389
 
390
390
  ___
391
391
 
@@ -399,7 +399,7 @@ ___
399
399
 
400
400
  #### Defined in
401
401
 
402
- node_modules/@types/node/events.d.ts:301
402
+ node_modules/@types/node/events.d.ts:291
403
403
 
404
404
  ___
405
405
 
@@ -415,7 +415,7 @@ Sets or gets the default captureRejection value for all emitters.
415
415
 
416
416
  #### Defined in
417
417
 
418
- node_modules/@types/node/events.d.ts:306
418
+ node_modules/@types/node/events.d.ts:296
419
419
 
420
420
  ___
421
421
 
@@ -429,7 +429,7 @@ ___
429
429
 
430
430
  #### Defined in
431
431
 
432
- node_modules/@types/node/events.d.ts:307
432
+ node_modules/@types/node/events.d.ts:297
433
433
 
434
434
  ___
435
435
 
@@ -451,7 +451,7 @@ regular `'error'` listener is installed.
451
451
 
452
452
  #### Defined in
453
453
 
454
- node_modules/@types/node/events.d.ts:300
454
+ node_modules/@types/node/events.d.ts:290
455
455
 
456
456
  ## Accessors
457
457
 
@@ -469,7 +469,7 @@ Input.\_\_@toStringTag@66
469
469
 
470
470
  #### Defined in
471
471
 
472
- [src/input.ts:145](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L145)
472
+ [src/input.ts:149](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L149)
473
473
 
474
474
  ___
475
475
 
@@ -487,7 +487,7 @@ Input.active
487
487
 
488
488
  #### Defined in
489
489
 
490
- [src/dualsense.ts:54](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/dualsense.ts#L54)
490
+ [src/dualsense.ts:54](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/dualsense.ts#L54)
491
491
 
492
492
  ## Methods
493
493
 
@@ -508,7 +508,7 @@ And decide if this is the root Input.
508
508
 
509
509
  #### Defined in
510
510
 
511
- [src/input.ts:164](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L164)
511
+ [src/input.ts:168](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L168)
512
512
 
513
513
  ___
514
514
 
@@ -533,7 +533,7 @@ ___
533
533
 
534
534
  #### Defined in
535
535
 
536
- [src/input.ts:186](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L186)
536
+ [src/input.ts:190](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L190)
537
537
 
538
538
  ___
539
539
 
@@ -558,7 +558,7 @@ ___
558
558
 
559
559
  #### Defined in
560
560
 
561
- [src/input.ts:190](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L190)
561
+ [src/input.ts:194](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L194)
562
562
 
563
563
  ___
564
564
 
@@ -576,7 +576,7 @@ ___
576
576
 
577
577
  #### Defined in
578
578
 
579
- [src/input.ts:182](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L182)
579
+ [src/input.ts:186](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L186)
580
580
 
581
581
  ___
582
582
 
@@ -607,7 +607,7 @@ ___
607
607
 
608
608
  #### Defined in
609
609
 
610
- [src/input.ts:195](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L195)
610
+ [src/input.ts:199](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L199)
611
611
 
612
612
  ___
613
613
 
@@ -633,7 +633,7 @@ Update the input's state and trigger all necessary callbacks.
633
633
 
634
634
  #### Defined in
635
635
 
636
- [src/input.ts:211](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L211)
636
+ [src/input.ts:215](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L215)
637
637
 
638
638
  ___
639
639
 
@@ -651,7 +651,7 @@ ___
651
651
 
652
652
  #### Defined in
653
653
 
654
- [src/input.ts:135](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L135)
654
+ [src/input.ts:139](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L139)
655
655
 
656
656
  ___
657
657
 
@@ -669,7 +669,7 @@ ___
669
669
 
670
670
  #### Defined in
671
671
 
672
- [src/input.ts:127](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L127)
672
+ [src/input.ts:131](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L131)
673
673
 
674
674
  ___
675
675
 
@@ -693,7 +693,7 @@ ___
693
693
 
694
694
  #### Defined in
695
695
 
696
- [src/input.ts:139](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L139)
696
+ [src/input.ts:143](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L143)
697
697
 
698
698
  ___
699
699
 
@@ -722,7 +722,7 @@ Alias for `emitter.on(eventName, listener)`.
722
722
 
723
723
  #### Defined in
724
724
 
725
- node_modules/@types/node/events.d.ts:327
725
+ node_modules/@types/node/events.d.ts:317
726
726
 
727
727
  ___
728
728
 
@@ -747,7 +747,7 @@ ___
747
747
 
748
748
  #### Defined in
749
749
 
750
- [src/input.ts:44](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L44)
750
+ [src/input.ts:44](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L44)
751
751
 
752
752
  ___
753
753
 
@@ -783,7 +783,7 @@ console.log(myEE.eventNames());
783
783
 
784
784
  #### Defined in
785
785
 
786
- node_modules/@types/node/events.d.ts:642
786
+ node_modules/@types/node/events.d.ts:632
787
787
 
788
788
  ___
789
789
 
@@ -806,7 +806,7 @@ set by `emitter.setMaxListeners(n)` or defaults to [defaultMaxListeners](../wiki
806
806
 
807
807
  #### Defined in
808
808
 
809
- node_modules/@types/node/events.d.ts:499
809
+ node_modules/@types/node/events.d.ts:489
810
810
 
811
811
  ___
812
812
 
@@ -834,7 +834,7 @@ Returns the number of listeners listening to the event named `eventName`.
834
834
 
835
835
  #### Defined in
836
836
 
837
- node_modules/@types/node/events.d.ts:589
837
+ node_modules/@types/node/events.d.ts:579
838
838
 
839
839
  ___
840
840
 
@@ -870,16 +870,22 @@ console.log(util.inspect(server.listeners('connection')));
870
870
 
871
871
  #### Defined in
872
872
 
873
- node_modules/@types/node/events.d.ts:512
873
+ node_modules/@types/node/events.d.ts:502
874
874
 
875
875
  ___
876
876
 
877
877
  ### next
878
878
 
879
- ▸ **next**(): `Promise`<`IteratorResult`<[`Dualsense`](../wiki/Dualsense), `any`\>\>
879
+ ▸ **next**(`type?`): `Promise`<`IteratorResult`<[`Dualsense`](../wiki/Dualsense), `any`\>\>
880
880
 
881
881
  Resolves on the next change to this input's state.
882
882
 
883
+ #### Parameters
884
+
885
+ | Name | Type | Default value |
886
+ | :------ | :------ | :------ |
887
+ | `type` | ``"change"`` \| ``"press"`` \| ``"release"`` | `"change"` |
888
+
883
889
  #### Returns
884
890
 
885
891
  `Promise`<`IteratorResult`<[`Dualsense`](../wiki/Dualsense), `any`\>\>
@@ -890,7 +896,7 @@ Resolves on the next change to this input's state.
890
896
 
891
897
  #### Defined in
892
898
 
893
- [src/input.ts:78](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L78)
899
+ [src/input.ts:78](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L78)
894
900
 
895
901
  ___
896
902
 
@@ -919,7 +925,7 @@ Alias for `emitter.removeListener()`.
919
925
 
920
926
  #### Defined in
921
927
 
922
- node_modules/@types/node/events.d.ts:472
928
+ node_modules/@types/node/events.d.ts:462
923
929
 
924
930
  ___
925
931
 
@@ -944,7 +950,7 @@ ___
944
950
 
945
951
  #### Defined in
946
952
 
947
- [src/input.ts:37](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L37)
953
+ [src/input.ts:37](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L37)
948
954
 
949
955
  ___
950
956
 
@@ -995,7 +1001,7 @@ myEE.emit('foo');
995
1001
 
996
1002
  #### Defined in
997
1003
 
998
- node_modules/@types/node/events.d.ts:387
1004
+ node_modules/@types/node/events.d.ts:377
999
1005
 
1000
1006
  ___
1001
1007
 
@@ -1035,7 +1041,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1035
1041
 
1036
1042
  #### Defined in
1037
1043
 
1038
- node_modules/@types/node/events.d.ts:607
1044
+ node_modules/@types/node/events.d.ts:597
1039
1045
 
1040
1046
  ___
1041
1047
 
@@ -1073,16 +1079,22 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1073
1079
 
1074
1080
  #### Defined in
1075
1081
 
1076
- node_modules/@types/node/events.d.ts:623
1082
+ node_modules/@types/node/events.d.ts:613
1077
1083
 
1078
1084
  ___
1079
1085
 
1080
1086
  ### promise
1081
1087
 
1082
- ▸ **promise**(): `Promise`<[`Dualsense`](../wiki/Dualsense)\>
1088
+ ▸ **promise**(`type?`): `Promise`<[`Dualsense`](../wiki/Dualsense)\>
1083
1089
 
1084
1090
  Resolves on the next change to this input's state.
1085
1091
 
1092
+ #### Parameters
1093
+
1094
+ | Name | Type | Default value |
1095
+ | :------ | :------ | :------ |
1096
+ | `type` | ``"change"`` \| ``"press"`` \| ``"release"`` | `"change"` |
1097
+
1086
1098
  #### Returns
1087
1099
 
1088
1100
  `Promise`<[`Dualsense`](../wiki/Dualsense)\>
@@ -1093,7 +1105,7 @@ Resolves on the next change to this input's state.
1093
1105
 
1094
1106
  #### Defined in
1095
1107
 
1096
- [src/input.ts:89](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L89)
1108
+ [src/input.ts:91](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L91)
1097
1109
 
1098
1110
  ___
1099
1111
 
@@ -1146,7 +1158,7 @@ emitter.emit('log');
1146
1158
 
1147
1159
  #### Defined in
1148
1160
 
1149
- node_modules/@types/node/events.d.ts:542
1161
+ node_modules/@types/node/events.d.ts:532
1150
1162
 
1151
1163
  ___
1152
1164
 
@@ -1180,7 +1192,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1180
1192
 
1181
1193
  #### Defined in
1182
1194
 
1183
- node_modules/@types/node/events.d.ts:483
1195
+ node_modules/@types/node/events.d.ts:473
1184
1196
 
1185
1197
  ___
1186
1198
 
@@ -1284,7 +1296,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1284
1296
 
1285
1297
  #### Defined in
1286
1298
 
1287
- node_modules/@types/node/events.d.ts:467
1299
+ node_modules/@types/node/events.d.ts:457
1288
1300
 
1289
1301
  ___
1290
1302
 
@@ -1317,7 +1329,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1317
1329
 
1318
1330
  #### Defined in
1319
1331
 
1320
- node_modules/@types/node/events.d.ts:493
1332
+ node_modules/@types/node/events.d.ts:483
1321
1333
 
1322
1334
  ___
1323
1335
 
@@ -1337,7 +1349,7 @@ Render a convenient debugging string.
1337
1349
 
1338
1350
  #### Defined in
1339
1351
 
1340
- [src/input.ts:98](https://github.com/nsfm/dualsense-ts/blob/29d69a7/src/input.ts#L98)
1352
+ [src/input.ts:102](https://github.com/nsfm/dualsense-ts/blob/04aff39/src/input.ts#L102)
1341
1353
 
1342
1354
  ___
1343
1355
 
@@ -1389,7 +1401,7 @@ const { getEventListeners, EventEmitter } = require('events');
1389
1401
 
1390
1402
  #### Defined in
1391
1403
 
1392
- node_modules/@types/node/events.d.ts:270
1404
+ node_modules/@types/node/events.d.ts:262
1393
1405
 
1394
1406
  ___
1395
1407
 
@@ -1429,7 +1441,7 @@ console.log(listenerCount(myEmitter, 'event'));
1429
1441
 
1430
1442
  #### Defined in
1431
1443
 
1432
- node_modules/@types/node/events.d.ts:242
1444
+ node_modules/@types/node/events.d.ts:234
1433
1445
 
1434
1446
  ___
1435
1447
 
@@ -1513,7 +1525,7 @@ that iterates `eventName` events emitted by the `emitter`
1513
1525
 
1514
1526
  #### Defined in
1515
1527
 
1516
- node_modules/@types/node/events.d.ts:221
1528
+ node_modules/@types/node/events.d.ts:217
1517
1529
 
1518
1530
  ___
1519
1531
 
@@ -1643,7 +1655,7 @@ node_modules/@types/node/events.d.ts:157
1643
1655
 
1644
1656
  #### Defined in
1645
1657
 
1646
- node_modules/@types/node/events.d.ts:162
1658
+ node_modules/@types/node/events.d.ts:158
1647
1659
 
1648
1660
  ___
1649
1661
 
@@ -1651,31 +1663,26 @@ ___
1651
1663
 
1652
1664
  ▸ `Static` **setMaxListeners**(`n?`, ...`eventTargets`): `void`
1653
1665
 
1654
- By default `EventEmitter`s will print a warning if more than `10` listeners are
1655
- added for a particular event. This is a useful default that helps finding
1656
- memory leaks. The `EventEmitter.setMaxListeners()` method allows the default limit to be
1657
- modified (if eventTargets is empty) or modify the limit specified in every `EventTarget` | `EventEmitter` passed as arguments.
1658
- The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners.
1659
-
1660
1666
  ```js
1661
- EventEmitter.setMaxListeners(20);
1662
- // Equivalent to
1663
- EventEmitter.defaultMaxListeners = 20;
1664
-
1665
- const eventTarget = new EventTarget();
1666
- // Only way to increase limit for `EventTarget` instances
1667
- // as these doesn't expose its own `setMaxListeners` method
1668
- EventEmitter.setMaxListeners(20, eventTarget);
1667
+ const {
1668
+ setMaxListeners,
1669
+ EventEmitter
1670
+ } = require('events');
1671
+
1672
+ const target = new EventTarget();
1673
+ const emitter = new EventEmitter();
1674
+
1675
+ setMaxListeners(5, target, emitter);
1669
1676
  ```
1670
1677
 
1671
- **`since`** v15.3.0, v14.17.0
1678
+ **`since`** v15.4.0
1672
1679
 
1673
1680
  #### Parameters
1674
1681
 
1675
- | Name | Type |
1676
- | :------ | :------ |
1677
- | `n?` | `number` |
1678
- | `...eventTargets` | (`EventEmitter` \| `DOMEventTarget`)[] |
1682
+ | Name | Type | Description |
1683
+ | :------ | :------ | :------ |
1684
+ | `n?` | `number` | A non-negative number. The maximum number of listeners per `EventTarget` event. |
1685
+ | `...eventTargets` | (`EventEmitter` \| `DOMEventTarget`)[] | - |
1679
1686
 
1680
1687
  #### Returns
1681
1688
 
@@ -1687,4 +1694,4 @@ EventEmitter.setMaxListeners(20, eventTarget);
1687
1694
 
1688
1695
  #### Defined in
1689
1696
 
1690
- node_modules/@types/node/events.d.ts:290
1697
+ node_modules/@types/node/events.d.ts:280