dualsense-ts 2.2.0 → 2.2.1

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 (47) hide show
  1. package/dist/elements/analog.js +2 -2
  2. package/dist/elements/analog.js.map +1 -1
  3. package/dist/elements/unisense.js +1 -1
  4. package/dist/elements/unisense.js.map +1 -1
  5. package/dist/input.d.ts +27 -0
  6. package/dist/input.d.ts.map +1 -1
  7. package/dist/input.js +9 -3
  8. package/dist/input.js.map +1 -1
  9. package/docs/Analog.md +81 -131
  10. package/docs/AnalogParams.md +7 -9
  11. package/docs/Axis.md +72 -79
  12. package/docs/Brightness.md +8 -8
  13. package/docs/CommandScopeA.md +16 -16
  14. package/docs/CommandScopeB.md +14 -14
  15. package/docs/Dpad.md +74 -81
  16. package/docs/DpadParams.md +8 -8
  17. package/docs/DualSenseCommand.md +45 -45
  18. package/docs/Dualsense.md +83 -90
  19. package/docs/DualsenseHID.md +47 -42
  20. package/docs/DualsenseHIDState.md +41 -41
  21. package/docs/DualsenseParams.md +17 -17
  22. package/docs/Exports.md +18 -21
  23. package/docs/Haptic.md +1 -1
  24. package/docs/Home.md +29 -31
  25. package/docs/Indicator.md +2 -2
  26. package/docs/Input.md +70 -79
  27. package/docs/InputId.md +84 -84
  28. package/docs/InputParams.md +4 -4
  29. package/docs/LedOptions.md +10 -10
  30. package/docs/Momentary.md +70 -77
  31. package/docs/Motion.md +2 -2
  32. package/docs/Mute.md +71 -89
  33. package/docs/PlayerID.md +12 -12
  34. package/docs/PulseOptions.md +8 -8
  35. package/docs/Touchpad.md +120 -94
  36. package/docs/Trigger.md +75 -82
  37. package/docs/TriggerMode.md +22 -22
  38. package/docs/Unisense.md +74 -81
  39. package/docs/UnisenseParams.md +7 -7
  40. package/package.json +2 -2
  41. package/src/elements/analog.spec.ts +17 -0
  42. package/src/elements/analog.ts +2 -2
  43. package/src/elements/axis.spec.ts +31 -0
  44. package/src/elements/unisense.ts +1 -1
  45. package/src/input.ts +27 -9
  46. package/docs/Increment.md +0 -1554
  47. package/docs/Touch.md +0 -1824
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/8aeab4d/src/dualsense.ts#L61)
103
+ [src/dualsense.ts:61](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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:128](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L128)
132
+ [src/input.ts:124](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L124)
133
133
 
134
134
  ___
135
135
 
@@ -143,7 +143,7 @@ ___
143
143
 
144
144
  #### Defined in
145
145
 
146
- [src/input.ts:162](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L162)
146
+ [src/input.ts:158](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L158)
147
147
 
148
148
  ___
149
149
 
@@ -157,7 +157,7 @@ ___
157
157
 
158
158
  #### Defined in
159
159
 
160
- [src/input.ts:157](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L157)
160
+ [src/input.ts:153](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L153)
161
161
 
162
162
  ___
163
163
 
@@ -171,7 +171,7 @@ ___
171
171
 
172
172
  #### Defined in
173
173
 
174
- [src/input.ts:154](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L154)
174
+ [src/input.ts:150](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L150)
175
175
 
176
176
  ___
177
177
 
@@ -185,7 +185,7 @@ ___
185
185
 
186
186
  #### Defined in
187
187
 
188
- [src/input.ts:160](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L160)
188
+ [src/input.ts:156](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L156)
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/8aeab4d/src/dualsense.ts#L41)
198
+ [src/dualsense.ts:41](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L38)
208
+ [src/dualsense.ts:38](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L42)
218
+ [src/dualsense.ts:42](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L45)
228
+ [src/dualsense.ts:45](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L52)
238
+ [src/dualsense.ts:52](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/input.ts#L58)
252
+ [src/input.ts:58](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/input.ts#L61)
266
+ [src/input.ts:61](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/input.ts#L64)
280
+ [src/input.ts:64](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L47)
290
+ [src/dualsense.ts:47](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L35)
300
+ [src/dualsense.ts:35](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L37)
310
+ [src/dualsense.ts:37](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L34)
320
+ [src/dualsense.ts:34](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L48)
330
+ [src/dualsense.ts:48](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L43)
340
+ [src/dualsense.ts:43](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L32)
354
+ [src/dualsense.ts:32](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/input.ts#L67)
368
+ [src/input.ts:67](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L50)
378
+ [src/dualsense.ts:50](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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/8aeab4d/src/dualsense.ts#L40)
388
+ [src/dualsense.ts:40](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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:291
402
+ node_modules/@types/node/events.d.ts:301
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:296
418
+ node_modules/@types/node/events.d.ts:306
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:297
432
+ node_modules/@types/node/events.d.ts:307
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:290
454
+ node_modules/@types/node/events.d.ts:300
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:149](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L149)
472
+ [src/input.ts:145](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L145)
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/8aeab4d/src/dualsense.ts#L54)
490
+ [src/dualsense.ts:54](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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:168](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L168)
511
+ [src/input.ts:164](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L164)
512
512
 
513
513
  ___
514
514
 
@@ -533,7 +533,7 @@ ___
533
533
 
534
534
  #### Defined in
535
535
 
536
- [src/input.ts:190](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L190)
536
+ [src/input.ts:186](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L186)
537
537
 
538
538
  ___
539
539
 
@@ -558,7 +558,7 @@ ___
558
558
 
559
559
  #### Defined in
560
560
 
561
- [src/input.ts:194](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L194)
561
+ [src/input.ts:190](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L190)
562
562
 
563
563
  ___
564
564
 
@@ -576,7 +576,7 @@ ___
576
576
 
577
577
  #### Defined in
578
578
 
579
- [src/input.ts:186](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L186)
579
+ [src/input.ts:182](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L182)
580
580
 
581
581
  ___
582
582
 
@@ -607,7 +607,7 @@ ___
607
607
 
608
608
  #### Defined in
609
609
 
610
- [src/input.ts:199](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L199)
610
+ [src/input.ts:195](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L195)
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:215](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L215)
636
+ [src/input.ts:211](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L211)
637
637
 
638
638
  ___
639
639
 
@@ -651,7 +651,7 @@ ___
651
651
 
652
652
  #### Defined in
653
653
 
654
- [src/input.ts:139](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L139)
654
+ [src/input.ts:135](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L135)
655
655
 
656
656
  ___
657
657
 
@@ -669,7 +669,7 @@ ___
669
669
 
670
670
  #### Defined in
671
671
 
672
- [src/input.ts:131](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L131)
672
+ [src/input.ts:127](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L127)
673
673
 
674
674
  ___
675
675
 
@@ -693,7 +693,7 @@ ___
693
693
 
694
694
  #### Defined in
695
695
 
696
- [src/input.ts:143](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L143)
696
+ [src/input.ts:139](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L139)
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:317
725
+ node_modules/@types/node/events.d.ts:327
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/8aeab4d/src/input.ts#L44)
750
+ [src/input.ts:44](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/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:632
786
+ node_modules/@types/node/events.d.ts:642
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:489
809
+ node_modules/@types/node/events.d.ts:499
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:579
837
+ node_modules/@types/node/events.d.ts:589
838
838
 
839
839
  ___
840
840
 
@@ -870,22 +870,16 @@ console.log(util.inspect(server.listeners('connection')));
870
870
 
871
871
  #### Defined in
872
872
 
873
- node_modules/@types/node/events.d.ts:502
873
+ node_modules/@types/node/events.d.ts:512
874
874
 
875
875
  ___
876
876
 
877
877
  ### next
878
878
 
879
- ▸ **next**(`type?`): `Promise`<`IteratorResult`<[`Dualsense`](../wiki/Dualsense), `any`\>\>
879
+ ▸ **next**(): `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
-
889
883
  #### Returns
890
884
 
891
885
  `Promise`<`IteratorResult`<[`Dualsense`](../wiki/Dualsense), `any`\>\>
@@ -896,7 +890,7 @@ Resolves on the next change to this input's state.
896
890
 
897
891
  #### Defined in
898
892
 
899
- [src/input.ts:78](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L78)
893
+ [src/input.ts:78](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L78)
900
894
 
901
895
  ___
902
896
 
@@ -925,7 +919,7 @@ Alias for `emitter.removeListener()`.
925
919
 
926
920
  #### Defined in
927
921
 
928
- node_modules/@types/node/events.d.ts:462
922
+ node_modules/@types/node/events.d.ts:472
929
923
 
930
924
  ___
931
925
 
@@ -950,7 +944,7 @@ ___
950
944
 
951
945
  #### Defined in
952
946
 
953
- [src/input.ts:37](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L37)
947
+ [src/input.ts:37](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L37)
954
948
 
955
949
  ___
956
950
 
@@ -1001,7 +995,7 @@ myEE.emit('foo');
1001
995
 
1002
996
  #### Defined in
1003
997
 
1004
- node_modules/@types/node/events.d.ts:377
998
+ node_modules/@types/node/events.d.ts:387
1005
999
 
1006
1000
  ___
1007
1001
 
@@ -1041,7 +1035,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1041
1035
 
1042
1036
  #### Defined in
1043
1037
 
1044
- node_modules/@types/node/events.d.ts:597
1038
+ node_modules/@types/node/events.d.ts:607
1045
1039
 
1046
1040
  ___
1047
1041
 
@@ -1079,22 +1073,16 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1079
1073
 
1080
1074
  #### Defined in
1081
1075
 
1082
- node_modules/@types/node/events.d.ts:613
1076
+ node_modules/@types/node/events.d.ts:623
1083
1077
 
1084
1078
  ___
1085
1079
 
1086
1080
  ### promise
1087
1081
 
1088
- ▸ **promise**(`type?`): `Promise`<[`Dualsense`](../wiki/Dualsense)\>
1082
+ ▸ **promise**(): `Promise`<[`Dualsense`](../wiki/Dualsense)\>
1089
1083
 
1090
1084
  Resolves on the next change to this input's state.
1091
1085
 
1092
- #### Parameters
1093
-
1094
- | Name | Type | Default value |
1095
- | :------ | :------ | :------ |
1096
- | `type` | ``"change"`` \| ``"press"`` \| ``"release"`` | `"change"` |
1097
-
1098
1086
  #### Returns
1099
1087
 
1100
1088
  `Promise`<[`Dualsense`](../wiki/Dualsense)\>
@@ -1105,7 +1093,7 @@ Resolves on the next change to this input's state.
1105
1093
 
1106
1094
  #### Defined in
1107
1095
 
1108
- [src/input.ts:91](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L91)
1096
+ [src/input.ts:89](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L89)
1109
1097
 
1110
1098
  ___
1111
1099
 
@@ -1158,7 +1146,7 @@ emitter.emit('log');
1158
1146
 
1159
1147
  #### Defined in
1160
1148
 
1161
- node_modules/@types/node/events.d.ts:532
1149
+ node_modules/@types/node/events.d.ts:542
1162
1150
 
1163
1151
  ___
1164
1152
 
@@ -1192,7 +1180,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1192
1180
 
1193
1181
  #### Defined in
1194
1182
 
1195
- node_modules/@types/node/events.d.ts:473
1183
+ node_modules/@types/node/events.d.ts:483
1196
1184
 
1197
1185
  ___
1198
1186
 
@@ -1296,7 +1284,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1296
1284
 
1297
1285
  #### Defined in
1298
1286
 
1299
- node_modules/@types/node/events.d.ts:457
1287
+ node_modules/@types/node/events.d.ts:467
1300
1288
 
1301
1289
  ___
1302
1290
 
@@ -1329,7 +1317,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1329
1317
 
1330
1318
  #### Defined in
1331
1319
 
1332
- node_modules/@types/node/events.d.ts:483
1320
+ node_modules/@types/node/events.d.ts:493
1333
1321
 
1334
1322
  ___
1335
1323
 
@@ -1349,7 +1337,7 @@ Render a convenient debugging string.
1349
1337
 
1350
1338
  #### Defined in
1351
1339
 
1352
- [src/input.ts:102](https://github.com/nsfm/dualsense-ts/blob/8aeab4d/src/input.ts#L102)
1340
+ [src/input.ts:98](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L98)
1353
1341
 
1354
1342
  ___
1355
1343
 
@@ -1401,7 +1389,7 @@ const { getEventListeners, EventEmitter } = require('events');
1401
1389
 
1402
1390
  #### Defined in
1403
1391
 
1404
- node_modules/@types/node/events.d.ts:262
1392
+ node_modules/@types/node/events.d.ts:270
1405
1393
 
1406
1394
  ___
1407
1395
 
@@ -1441,7 +1429,7 @@ console.log(listenerCount(myEmitter, 'event'));
1441
1429
 
1442
1430
  #### Defined in
1443
1431
 
1444
- node_modules/@types/node/events.d.ts:234
1432
+ node_modules/@types/node/events.d.ts:242
1445
1433
 
1446
1434
  ___
1447
1435
 
@@ -1525,7 +1513,7 @@ that iterates `eventName` events emitted by the `emitter`
1525
1513
 
1526
1514
  #### Defined in
1527
1515
 
1528
- node_modules/@types/node/events.d.ts:217
1516
+ node_modules/@types/node/events.d.ts:221
1529
1517
 
1530
1518
  ___
1531
1519
 
@@ -1655,7 +1643,7 @@ node_modules/@types/node/events.d.ts:157
1655
1643
 
1656
1644
  #### Defined in
1657
1645
 
1658
- node_modules/@types/node/events.d.ts:158
1646
+ node_modules/@types/node/events.d.ts:162
1659
1647
 
1660
1648
  ___
1661
1649
 
@@ -1663,26 +1651,31 @@ ___
1663
1651
 
1664
1652
  ▸ `Static` **setMaxListeners**(`n?`, ...`eventTargets`): `void`
1665
1653
 
1666
- ```js
1667
- const {
1668
- setMaxListeners,
1669
- EventEmitter
1670
- } = require('events');
1671
-
1672
- const target = new EventTarget();
1673
- const emitter = new EventEmitter();
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.
1674
1659
 
1675
- setMaxListeners(5, target, emitter);
1660
+ ```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);
1676
1669
  ```
1677
1670
 
1678
- **`since`** v15.4.0
1671
+ **`since`** v15.3.0, v14.17.0
1679
1672
 
1680
1673
  #### Parameters
1681
1674
 
1682
- | Name | Type | Description |
1683
- | :------ | :------ | :------ |
1684
- | `n?` | `number` | A non-negative number. The maximum number of listeners per `EventTarget` event. |
1685
- | `...eventTargets` | (`EventEmitter` \| `DOMEventTarget`)[] | - |
1675
+ | Name | Type |
1676
+ | :------ | :------ |
1677
+ | `n?` | `number` |
1678
+ | `...eventTargets` | (`EventEmitter` \| `DOMEventTarget`)[] |
1686
1679
 
1687
1680
  #### Returns
1688
1681
 
@@ -1694,4 +1687,4 @@ setMaxListeners(5, target, emitter);
1694
1687
 
1695
1688
  #### Defined in
1696
1689
 
1697
- node_modules/@types/node/events.d.ts:280
1690
+ node_modules/@types/node/events.d.ts:290