dualsense-ts 2.1.39 → 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 (53) hide show
  1. package/README.md +1 -1
  2. package/dist/elements/analog.d.ts +46 -3
  3. package/dist/elements/analog.d.ts.map +1 -1
  4. package/dist/elements/analog.js +41 -14
  5. package/dist/elements/analog.js.map +1 -1
  6. package/dist/elements/axis.js +3 -3
  7. package/dist/elements/axis.js.map +1 -1
  8. package/dist/elements/unisense.js +1 -1
  9. package/dist/elements/unisense.js.map +1 -1
  10. package/dist/input.d.ts +27 -0
  11. package/dist/input.d.ts.map +1 -1
  12. package/dist/input.js +9 -3
  13. package/dist/input.js.map +1 -1
  14. package/docs/Analog.md +81 -90
  15. package/docs/AnalogParams.md +7 -7
  16. package/docs/Axis.md +72 -79
  17. package/docs/Brightness.md +8 -8
  18. package/docs/CommandScopeA.md +16 -16
  19. package/docs/CommandScopeB.md +14 -14
  20. package/docs/Dpad.md +74 -81
  21. package/docs/DpadParams.md +8 -8
  22. package/docs/DualSenseCommand.md +45 -45
  23. package/docs/Dualsense.md +83 -90
  24. package/docs/DualsenseHID.md +47 -42
  25. package/docs/DualsenseHIDState.md +41 -41
  26. package/docs/DualsenseParams.md +17 -17
  27. package/docs/Exports.md +18 -21
  28. package/docs/Haptic.md +1 -1
  29. package/docs/Home.md +29 -31
  30. package/docs/Indicator.md +2 -2
  31. package/docs/Input.md +70 -79
  32. package/docs/InputId.md +84 -84
  33. package/docs/InputParams.md +4 -4
  34. package/docs/LedOptions.md +10 -10
  35. package/docs/Momentary.md +70 -77
  36. package/docs/Motion.md +2 -2
  37. package/docs/Mute.md +71 -89
  38. package/docs/PlayerID.md +12 -12
  39. package/docs/PulseOptions.md +8 -8
  40. package/docs/Touchpad.md +120 -94
  41. package/docs/Trigger.md +75 -82
  42. package/docs/TriggerMode.md +22 -22
  43. package/docs/Unisense.md +74 -81
  44. package/docs/UnisenseParams.md +7 -7
  45. package/package.json +2 -2
  46. package/src/elements/analog.spec.ts +17 -0
  47. package/src/elements/analog.ts +56 -18
  48. package/src/elements/axis.spec.ts +31 -0
  49. package/src/elements/axis.ts +3 -3
  50. package/src/elements/unisense.ts +1 -1
  51. package/src/input.ts +27 -9
  52. package/docs/Increment.md +0 -1554
  53. package/docs/Touch.md +0 -1781
package/docs/Touchpad.md CHANGED
@@ -20,13 +20,16 @@
20
20
  - [[InputName]](../wiki/Touchpad#%5Binputname%5D)
21
21
  - [[InputParent]](../wiki/Touchpad#%5Binputparent%5D)
22
22
  - [button](../wiki/Touchpad#button)
23
+ - [direction](../wiki/Touchpad#direction)
23
24
  - [id](../wiki/Touchpad#id)
24
25
  - [lastChange](../wiki/Touchpad#lastchange)
25
26
  - [lastInput](../wiki/Touchpad#lastinput)
26
- - [left](../wiki/Touchpad#left)
27
- - [right](../wiki/Touchpad#right)
28
27
  - [state](../wiki/Touchpad#state)
29
28
  - [threshold](../wiki/Touchpad#threshold)
29
+ - [x1](../wiki/Touchpad#x1)
30
+ - [x2](../wiki/Touchpad#x2)
31
+ - [y1](../wiki/Touchpad#y1)
32
+ - [y2](../wiki/Touchpad#y2)
30
33
  - [captureRejectionSymbol](../wiki/Touchpad#capturerejectionsymbol)
31
34
  - [captureRejections](../wiki/Touchpad#capturerejections)
32
35
  - [defaultMaxListeners](../wiki/Touchpad#defaultmaxlisteners)
@@ -90,7 +93,7 @@
90
93
 
91
94
  #### Defined in
92
95
 
93
- [src/elements/touchpad.ts:18](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/elements/touchpad.ts#L18)
96
+ [src/elements/touchpad.ts:24](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/elements/touchpad.ts#L24)
94
97
 
95
98
  ## Properties
96
99
 
@@ -119,7 +122,7 @@
119
122
 
120
123
  #### Defined in
121
124
 
122
- [src/input.ts:128](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L128)
125
+ [src/input.ts:124](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L124)
123
126
 
124
127
  ___
125
128
 
@@ -133,7 +136,7 @@ ___
133
136
 
134
137
  #### Defined in
135
138
 
136
- [src/input.ts:162](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L162)
139
+ [src/input.ts:158](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L158)
137
140
 
138
141
  ___
139
142
 
@@ -147,7 +150,7 @@ ___
147
150
 
148
151
  #### Defined in
149
152
 
150
- [src/input.ts:157](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L157)
153
+ [src/input.ts:153](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L153)
151
154
 
152
155
  ___
153
156
 
@@ -161,7 +164,7 @@ ___
161
164
 
162
165
  #### Defined in
163
166
 
164
- [src/input.ts:154](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L154)
167
+ [src/input.ts:150](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L150)
165
168
 
166
169
  ___
167
170
 
@@ -175,7 +178,7 @@ ___
175
178
 
176
179
  #### Defined in
177
180
 
178
- [src/input.ts:160](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L160)
181
+ [src/input.ts:156](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L156)
179
182
 
180
183
  ___
181
184
 
@@ -185,7 +188,17 @@ ___
185
188
 
186
189
  #### Defined in
187
190
 
188
- [src/elements/touchpad.ts:12](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/elements/touchpad.ts#L12)
191
+ [src/elements/touchpad.ts:22](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/elements/touchpad.ts#L22)
192
+
193
+ ___
194
+
195
+ ### direction
196
+
197
+ • `Readonly` **direction**: `number` = `0`
198
+
199
+ #### Defined in
200
+
201
+ [src/elements/touchpad.ts:38](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/elements/touchpad.ts#L38)
189
202
 
190
203
  ___
191
204
 
@@ -199,7 +212,7 @@ ___
199
212
 
200
213
  #### Defined in
201
214
 
202
- [src/input.ts:58](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L58)
215
+ [src/input.ts:58](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L58)
203
216
 
204
217
  ___
205
218
 
@@ -213,7 +226,7 @@ ___
213
226
 
214
227
  #### Defined in
215
228
 
216
- [src/input.ts:61](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L61)
229
+ [src/input.ts:61](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L61)
217
230
 
218
231
  ___
219
232
 
@@ -227,55 +240,75 @@ ___
227
240
 
228
241
  #### Defined in
229
242
 
230
- [src/input.ts:64](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L64)
243
+ [src/input.ts:64](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L64)
231
244
 
232
245
  ___
233
246
 
234
- ### left
247
+ ### state
235
248
 
236
- • `Readonly` **left**: [`Touch`](../wiki/Touch)
249
+ • `Readonly` **state**: [`Touchpad`](../wiki/Touchpad)
250
+
251
+ #### Overrides
252
+
253
+ [Input](../wiki/Input).[state](../wiki/Input#state)
237
254
 
238
255
  #### Defined in
239
256
 
240
- [src/elements/touchpad.ts:15](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/elements/touchpad.ts#L15)
257
+ [src/elements/touchpad.ts:6](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/elements/touchpad.ts#L6)
241
258
 
242
259
  ___
243
260
 
244
- ### right
261
+ ### threshold
262
+
263
+ • **threshold**: `number` = `0`
264
+
265
+ #### Inherited from
245
266
 
246
- • `Readonly` **right**: [`Touch`](../wiki/Touch)
267
+ [Input](../wiki/Input).[threshold](../wiki/Input#threshold)
247
268
 
248
269
  #### Defined in
249
270
 
250
- [src/elements/touchpad.ts:16](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/elements/touchpad.ts#L16)
271
+ [src/input.ts:67](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L67)
251
272
 
252
273
  ___
253
274
 
254
- ### state
275
+ ### x1
255
276
 
256
- • `Readonly` **state**: [`Touchpad`](../wiki/Touchpad)
277
+ • `Readonly` **x1**: [`Axis`](../wiki/Axis)
257
278
 
258
- #### Overrides
279
+ #### Defined in
259
280
 
260
- [Input](../wiki/Input).[state](../wiki/Input#state)
281
+ [src/elements/touchpad.ts:18](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/elements/touchpad.ts#L18)
282
+
283
+ ___
284
+
285
+ ### x2
286
+
287
+ • `Readonly` **x2**: [`Axis`](../wiki/Axis)
261
288
 
262
289
  #### Defined in
263
290
 
264
- [src/elements/touchpad.ts:6](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/elements/touchpad.ts#L6)
291
+ [src/elements/touchpad.ts:20](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/elements/touchpad.ts#L20)
265
292
 
266
293
  ___
267
294
 
268
- ### threshold
295
+ ### y1
269
296
 
270
- **threshold**: `number` = `0`
297
+ • `Readonly` **y1**: [`Axis`](../wiki/Axis)
271
298
 
272
- #### Inherited from
299
+ #### Defined in
273
300
 
274
- [Input](../wiki/Input).[threshold](../wiki/Input#threshold)
301
+ [src/elements/touchpad.ts:19](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/elements/touchpad.ts#L19)
302
+
303
+ ___
304
+
305
+ ### y2
306
+
307
+ • `Readonly` **y2**: [`Axis`](../wiki/Axis)
275
308
 
276
309
  #### Defined in
277
310
 
278
- [src/input.ts:67](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L67)
311
+ [src/elements/touchpad.ts:21](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/elements/touchpad.ts#L21)
279
312
 
280
313
  ___
281
314
 
@@ -289,7 +322,7 @@ ___
289
322
 
290
323
  #### Defined in
291
324
 
292
- node_modules/@types/node/events.d.ts:291
325
+ node_modules/@types/node/events.d.ts:301
293
326
 
294
327
  ___
295
328
 
@@ -305,7 +338,7 @@ Sets or gets the default captureRejection value for all emitters.
305
338
 
306
339
  #### Defined in
307
340
 
308
- node_modules/@types/node/events.d.ts:296
341
+ node_modules/@types/node/events.d.ts:306
309
342
 
310
343
  ___
311
344
 
@@ -319,7 +352,7 @@ ___
319
352
 
320
353
  #### Defined in
321
354
 
322
- node_modules/@types/node/events.d.ts:297
355
+ node_modules/@types/node/events.d.ts:307
323
356
 
324
357
  ___
325
358
 
@@ -341,7 +374,7 @@ regular `'error'` listener is installed.
341
374
 
342
375
  #### Defined in
343
376
 
344
- node_modules/@types/node/events.d.ts:290
377
+ node_modules/@types/node/events.d.ts:300
345
378
 
346
379
  ## Accessors
347
380
 
@@ -359,7 +392,7 @@ Input.\_\_@toStringTag@66
359
392
 
360
393
  #### Defined in
361
394
 
362
- [src/input.ts:149](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L149)
395
+ [src/input.ts:145](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L145)
363
396
 
364
397
  ___
365
398
 
@@ -377,7 +410,7 @@ Input.active
377
410
 
378
411
  #### Defined in
379
412
 
380
- [src/elements/touchpad.ts:8](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/elements/touchpad.ts#L8)
413
+ [src/elements/touchpad.ts:8](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/elements/touchpad.ts#L8)
381
414
 
382
415
  ## Methods
383
416
 
@@ -398,7 +431,7 @@ And decide if this is the root Input.
398
431
 
399
432
  #### Defined in
400
433
 
401
- [src/input.ts:168](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L168)
434
+ [src/input.ts:164](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L164)
402
435
 
403
436
  ___
404
437
 
@@ -423,7 +456,7 @@ ___
423
456
 
424
457
  #### Defined in
425
458
 
426
- [src/input.ts:190](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L190)
459
+ [src/input.ts:186](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L186)
427
460
 
428
461
  ___
429
462
 
@@ -448,7 +481,7 @@ ___
448
481
 
449
482
  #### Defined in
450
483
 
451
- [src/input.ts:194](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L194)
484
+ [src/input.ts:190](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L190)
452
485
 
453
486
  ___
454
487
 
@@ -466,7 +499,7 @@ ___
466
499
 
467
500
  #### Defined in
468
501
 
469
- [src/input.ts:186](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L186)
502
+ [src/input.ts:182](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L182)
470
503
 
471
504
  ___
472
505
 
@@ -497,7 +530,7 @@ ___
497
530
 
498
531
  #### Defined in
499
532
 
500
- [src/input.ts:199](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L199)
533
+ [src/input.ts:195](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L195)
501
534
 
502
535
  ___
503
536
 
@@ -523,7 +556,7 @@ Update the input's state and trigger all necessary callbacks.
523
556
 
524
557
  #### Defined in
525
558
 
526
- [src/input.ts:215](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L215)
559
+ [src/input.ts:211](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L211)
527
560
 
528
561
  ___
529
562
 
@@ -541,7 +574,7 @@ ___
541
574
 
542
575
  #### Defined in
543
576
 
544
- [src/input.ts:139](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L139)
577
+ [src/input.ts:135](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L135)
545
578
 
546
579
  ___
547
580
 
@@ -559,7 +592,7 @@ ___
559
592
 
560
593
  #### Defined in
561
594
 
562
- [src/input.ts:131](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L131)
595
+ [src/input.ts:127](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L127)
563
596
 
564
597
  ___
565
598
 
@@ -583,7 +616,7 @@ ___
583
616
 
584
617
  #### Defined in
585
618
 
586
- [src/input.ts:143](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L143)
619
+ [src/input.ts:139](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L139)
587
620
 
588
621
  ___
589
622
 
@@ -612,7 +645,7 @@ Alias for `emitter.on(eventName, listener)`.
612
645
 
613
646
  #### Defined in
614
647
 
615
- node_modules/@types/node/events.d.ts:317
648
+ node_modules/@types/node/events.d.ts:327
616
649
 
617
650
  ___
618
651
 
@@ -637,7 +670,7 @@ ___
637
670
 
638
671
  #### Defined in
639
672
 
640
- [src/input.ts:44](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L44)
673
+ [src/input.ts:44](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L44)
641
674
 
642
675
  ___
643
676
 
@@ -673,7 +706,7 @@ console.log(myEE.eventNames());
673
706
 
674
707
  #### Defined in
675
708
 
676
- node_modules/@types/node/events.d.ts:632
709
+ node_modules/@types/node/events.d.ts:642
677
710
 
678
711
  ___
679
712
 
@@ -696,7 +729,7 @@ set by `emitter.setMaxListeners(n)` or defaults to [defaultMaxListeners](../wiki
696
729
 
697
730
  #### Defined in
698
731
 
699
- node_modules/@types/node/events.d.ts:489
732
+ node_modules/@types/node/events.d.ts:499
700
733
 
701
734
  ___
702
735
 
@@ -724,7 +757,7 @@ Returns the number of listeners listening to the event named `eventName`.
724
757
 
725
758
  #### Defined in
726
759
 
727
- node_modules/@types/node/events.d.ts:579
760
+ node_modules/@types/node/events.d.ts:589
728
761
 
729
762
  ___
730
763
 
@@ -760,22 +793,16 @@ console.log(util.inspect(server.listeners('connection')));
760
793
 
761
794
  #### Defined in
762
795
 
763
- node_modules/@types/node/events.d.ts:502
796
+ node_modules/@types/node/events.d.ts:512
764
797
 
765
798
  ___
766
799
 
767
800
  ### next
768
801
 
769
- ▸ **next**(`type?`): `Promise`<`IteratorResult`<[`Touchpad`](../wiki/Touchpad), `any`\>\>
802
+ ▸ **next**(): `Promise`<`IteratorResult`<[`Touchpad`](../wiki/Touchpad), `any`\>\>
770
803
 
771
804
  Resolves on the next change to this input's state.
772
805
 
773
- #### Parameters
774
-
775
- | Name | Type | Default value |
776
- | :------ | :------ | :------ |
777
- | `type` | ``"change"`` \| ``"press"`` \| ``"release"`` | `"change"` |
778
-
779
806
  #### Returns
780
807
 
781
808
  `Promise`<`IteratorResult`<[`Touchpad`](../wiki/Touchpad), `any`\>\>
@@ -786,7 +813,7 @@ Resolves on the next change to this input's state.
786
813
 
787
814
  #### Defined in
788
815
 
789
- [src/input.ts:78](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L78)
816
+ [src/input.ts:78](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L78)
790
817
 
791
818
  ___
792
819
 
@@ -815,7 +842,7 @@ Alias for `emitter.removeListener()`.
815
842
 
816
843
  #### Defined in
817
844
 
818
- node_modules/@types/node/events.d.ts:462
845
+ node_modules/@types/node/events.d.ts:472
819
846
 
820
847
  ___
821
848
 
@@ -840,7 +867,7 @@ ___
840
867
 
841
868
  #### Defined in
842
869
 
843
- [src/input.ts:37](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L37)
870
+ [src/input.ts:37](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L37)
844
871
 
845
872
  ___
846
873
 
@@ -891,7 +918,7 @@ myEE.emit('foo');
891
918
 
892
919
  #### Defined in
893
920
 
894
- node_modules/@types/node/events.d.ts:377
921
+ node_modules/@types/node/events.d.ts:387
895
922
 
896
923
  ___
897
924
 
@@ -931,7 +958,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
931
958
 
932
959
  #### Defined in
933
960
 
934
- node_modules/@types/node/events.d.ts:597
961
+ node_modules/@types/node/events.d.ts:607
935
962
 
936
963
  ___
937
964
 
@@ -969,22 +996,16 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
969
996
 
970
997
  #### Defined in
971
998
 
972
- node_modules/@types/node/events.d.ts:613
999
+ node_modules/@types/node/events.d.ts:623
973
1000
 
974
1001
  ___
975
1002
 
976
1003
  ### promise
977
1004
 
978
- ▸ **promise**(`type?`): `Promise`<[`Touchpad`](../wiki/Touchpad)\>
1005
+ ▸ **promise**(): `Promise`<[`Touchpad`](../wiki/Touchpad)\>
979
1006
 
980
1007
  Resolves on the next change to this input's state.
981
1008
 
982
- #### Parameters
983
-
984
- | Name | Type | Default value |
985
- | :------ | :------ | :------ |
986
- | `type` | ``"change"`` \| ``"press"`` \| ``"release"`` | `"change"` |
987
-
988
1009
  #### Returns
989
1010
 
990
1011
  `Promise`<[`Touchpad`](../wiki/Touchpad)\>
@@ -995,7 +1016,7 @@ Resolves on the next change to this input's state.
995
1016
 
996
1017
  #### Defined in
997
1018
 
998
- [src/input.ts:91](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L91)
1019
+ [src/input.ts:89](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L89)
999
1020
 
1000
1021
  ___
1001
1022
 
@@ -1048,7 +1069,7 @@ emitter.emit('log');
1048
1069
 
1049
1070
  #### Defined in
1050
1071
 
1051
- node_modules/@types/node/events.d.ts:532
1072
+ node_modules/@types/node/events.d.ts:542
1052
1073
 
1053
1074
  ___
1054
1075
 
@@ -1082,7 +1103,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1082
1103
 
1083
1104
  #### Defined in
1084
1105
 
1085
- node_modules/@types/node/events.d.ts:473
1106
+ node_modules/@types/node/events.d.ts:483
1086
1107
 
1087
1108
  ___
1088
1109
 
@@ -1186,7 +1207,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1186
1207
 
1187
1208
  #### Defined in
1188
1209
 
1189
- node_modules/@types/node/events.d.ts:457
1210
+ node_modules/@types/node/events.d.ts:467
1190
1211
 
1191
1212
  ___
1192
1213
 
@@ -1219,7 +1240,7 @@ Returns a reference to the `EventEmitter`, so that calls can be chained.
1219
1240
 
1220
1241
  #### Defined in
1221
1242
 
1222
- node_modules/@types/node/events.d.ts:483
1243
+ node_modules/@types/node/events.d.ts:493
1223
1244
 
1224
1245
  ___
1225
1246
 
@@ -1239,7 +1260,7 @@ Render a convenient debugging string.
1239
1260
 
1240
1261
  #### Defined in
1241
1262
 
1242
- [src/input.ts:102](https://github.com/nsfm/dualsense-ts/blob/e429a3c/src/input.ts#L102)
1263
+ [src/input.ts:98](https://github.com/nsfm/dualsense-ts/blob/ab67fa7/src/input.ts#L98)
1243
1264
 
1244
1265
  ___
1245
1266
 
@@ -1291,7 +1312,7 @@ const { getEventListeners, EventEmitter } = require('events');
1291
1312
 
1292
1313
  #### Defined in
1293
1314
 
1294
- node_modules/@types/node/events.d.ts:262
1315
+ node_modules/@types/node/events.d.ts:270
1295
1316
 
1296
1317
  ___
1297
1318
 
@@ -1331,7 +1352,7 @@ console.log(listenerCount(myEmitter, 'event'));
1331
1352
 
1332
1353
  #### Defined in
1333
1354
 
1334
- node_modules/@types/node/events.d.ts:234
1355
+ node_modules/@types/node/events.d.ts:242
1335
1356
 
1336
1357
  ___
1337
1358
 
@@ -1415,7 +1436,7 @@ that iterates `eventName` events emitted by the `emitter`
1415
1436
 
1416
1437
  #### Defined in
1417
1438
 
1418
- node_modules/@types/node/events.d.ts:217
1439
+ node_modules/@types/node/events.d.ts:221
1419
1440
 
1420
1441
  ___
1421
1442
 
@@ -1545,7 +1566,7 @@ node_modules/@types/node/events.d.ts:157
1545
1566
 
1546
1567
  #### Defined in
1547
1568
 
1548
- node_modules/@types/node/events.d.ts:158
1569
+ node_modules/@types/node/events.d.ts:162
1549
1570
 
1550
1571
  ___
1551
1572
 
@@ -1553,26 +1574,31 @@ ___
1553
1574
 
1554
1575
  ▸ `Static` **setMaxListeners**(`n?`, ...`eventTargets`): `void`
1555
1576
 
1556
- ```js
1557
- const {
1558
- setMaxListeners,
1559
- EventEmitter
1560
- } = require('events');
1561
-
1562
- const target = new EventTarget();
1563
- const emitter = new EventEmitter();
1577
+ By default `EventEmitter`s will print a warning if more than `10` listeners are
1578
+ added for a particular event. This is a useful default that helps finding
1579
+ memory leaks. The `EventEmitter.setMaxListeners()` method allows the default limit to be
1580
+ modified (if eventTargets is empty) or modify the limit specified in every `EventTarget` | `EventEmitter` passed as arguments.
1581
+ The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners.
1564
1582
 
1565
- setMaxListeners(5, target, emitter);
1583
+ ```js
1584
+ EventEmitter.setMaxListeners(20);
1585
+ // Equivalent to
1586
+ EventEmitter.defaultMaxListeners = 20;
1587
+
1588
+ const eventTarget = new EventTarget();
1589
+ // Only way to increase limit for `EventTarget` instances
1590
+ // as these doesn't expose its own `setMaxListeners` method
1591
+ EventEmitter.setMaxListeners(20, eventTarget);
1566
1592
  ```
1567
1593
 
1568
- **`since`** v15.4.0
1594
+ **`since`** v15.3.0, v14.17.0
1569
1595
 
1570
1596
  #### Parameters
1571
1597
 
1572
- | Name | Type | Description |
1573
- | :------ | :------ | :------ |
1574
- | `n?` | `number` | A non-negative number. The maximum number of listeners per `EventTarget` event. |
1575
- | `...eventTargets` | (`EventEmitter` \| `DOMEventTarget`)[] | - |
1598
+ | Name | Type |
1599
+ | :------ | :------ |
1600
+ | `n?` | `number` |
1601
+ | `...eventTargets` | (`EventEmitter` \| `DOMEventTarget`)[] |
1576
1602
 
1577
1603
  #### Returns
1578
1604
 
@@ -1584,4 +1610,4 @@ setMaxListeners(5, target, emitter);
1584
1610
 
1585
1611
  #### Defined in
1586
1612
 
1587
- node_modules/@types/node/events.d.ts:280
1613
+ node_modules/@types/node/events.d.ts:290