Repository navigation
Expand file tree
/
Copy pathGameController.d.ts
More file actions
2251 lines (1269 loc) · 51.7 KB
/
Copy pathGameController.d.ts
File metadata and controls
2251 lines (1269 loc) · 51.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference types="@nativescript/objc-node-api" />
/// <reference path="./AppKit.d.ts" />
/// <reference path="./Runtime.d.ts" />
declare const GCHapticsLocalityRightTrigger: string;
declare const GCHapticsLocalityHandles: string;
declare const GCHapticsLocalityAll: string;
declare const GCRacingWheelDidDisconnectNotification: string;
declare const GCRacingWheelDidConnectNotification: string;
declare const GCMouseDidStopBeingCurrentNotification: string;
declare const GCMouseDidDisconnectNotification: string;
declare const GCKeyboardDidDisconnectNotification: string;
declare const GCKeyboardDidConnectNotification: string;
declare const GCControllerDidBecomeCurrentNotification: string;
declare const GCControllerDidDisconnectNotification: string;
declare const GCControllerDidConnectNotification: string;
declare const GCInputDirectionalCardinalDpad: string;
declare const GCInputMicroGamepadButtonX: string;
declare const GCInputMicroGamepadButtonA: string;
declare const GCKeyRightGUI: string;
declare const GCKeyRightControl: string;
declare const GCKeyLeftGUI: string;
declare const GCKeyLeftAlt: string;
declare const GCKeyLeftControl: string;
declare const GCKeyLANG7: string;
declare const GCKeyLANG5: string;
declare const GCKeyLANG4: string;
declare const GCKeyLANG3: string;
declare const GCKeyLANG2: string;
declare const GCKeyLANG1: string;
declare const GCKeyInternational9: string;
declare const GCKeyInternational8: string;
declare const GCKeyInternational7: string;
declare const GCKeyInternational4: string;
declare const GCKeyInternational2: string;
declare const GCKeyInternational1: string;
declare const GCKeyNonUSBackslash: string;
declare const GCKeyKeypadEqualSign: string;
declare const GCKeyKeypad0: string;
declare const GCKeyKeypad6: string;
declare const GCKeyKeypad4: string;
declare const GCKeyKeypad3: string;
declare const GCKeyKeypad2: string;
declare const GCKeyKeypadEnter: string;
declare const GCKeyKeypadPlus: string;
declare const GCKeyKeypadHyphen: string;
declare const GCKeyKeypadAsterisk: string;
declare const GCKeyKeypadSlash: string;
declare const GCKeyKeypadNumLock: string;
declare const GCKeyDownArrow: string;
declare const GCKeyPageDown: string;
declare const GCKeyEnd: string;
declare const GCKeyDeleteForward: string;
declare const GCKeyPageUp: string;
declare const GCKeyScrollLock: string;
declare const GCKeyF20: string;
declare const GCKeyF19: string;
declare const GCKeyF17: string;
declare const GCKeyF13: string;
declare const GCKeyF11: string;
declare const GCKeyF10: string;
declare const GCKeyF9: string;
declare const GCKeyF8: string;
declare const GCKeyF7: string;
declare const GCKeyF6: string;
declare const GCKeyF5: string;
declare const GCKeyF4: string;
declare const GCKeyF3: string;
declare const GCKeyF2: string;
declare const GCKeyF1: string;
declare const GCKeyCapsLock: string;
declare const GCKeySlash: string;
declare const GCKeyPeriod: string;
declare const GCKeyComma: string;
declare const GCKeySemicolon: string;
declare const GCKeyNonUSPound: string;
declare const GCKeyCloseBracket: string;
declare const GCKeyEqualSign: string;
declare const GCKeySpacebar: string;
declare const GCKeyEscape: string;
declare const GCKeyZero: string;
declare const GCKeyNine: string;
declare const GCKeyEight: string;
declare const GCKeySeven: string;
declare const GCKeySix: string;
declare const GCKeyFive: string;
declare const GCKeyFour: string;
declare const GCKeyThree: string;
declare const GCKeyTwo: string;
declare const GCKeyOne: string;
declare const GCKeyZ: string;
declare const GCKeyX: string;
declare const GCKeyW: string;
declare const GCKeyT: string;
declare const GCKeyR: string;
declare const GCKeyP: string;
declare const GCKeyO: string;
declare const GCKeyM: string;
declare const GCKeyJ: string;
declare const GCKeyI: string;
declare const GCKeyH: string;
declare const GCKeyG: string;
declare const GCKeyF: string;
declare const GCKeyE: string;
declare const GCKeyC: string;
declare const GCKeyB: string;
declare const GCKeyA: string;
declare const GCKeyCodeRightGUI: number;
declare const GCKeyCodeRightShift: number;
declare const GCKeyCodeLeftGUI: number;
declare const GCKeyCodeLeftAlt: number;
declare const GCKeyCodeLeftControl: number;
declare const GCKeyCodeLANG9: number;
declare const GCKeyCodeLANG5: number;
declare const GCKeyCodeLANG4: number;
declare const GCKeyCodeLANG3: number;
declare const GCKeyCodeLANG2: number;
declare const GCKeyCodeInternational8: number;
declare const GCKeyCodeInternational7: number;
declare const GCKeyCodeInternational5: number;
declare const GCKeyCodeInternational4: number;
declare const GCKeyCodeInternational2: number;
declare const GCKeyCodeInternational1: number;
declare const GCKeyCodeNonUSBackslash: number;
declare const GCKeyCodeKeypadEqualSign: number;
declare const GCKeyCodeKeypadPeriod: number;
declare const GCKeyCodeKeypad0: number;
declare const GCKeyCodeKeypad9: number;
declare const GCKeyCodeKeypad8: number;
declare const GCKeyCodeKeypad7: number;
declare const GCKeyCodeKeypad4: number;
declare const GCKeyCodeKeypad3: number;
declare const GCKeyCodeKeypad2: number;
declare const GCKeyCodeKeypadEnter: number;
declare const GCKeyCodeKeypadAsterisk: number;
declare const GCKeyCodeKeypadSlash: number;
declare const GCKeyCodeUpArrow: number;
declare const GCKeyCodePageDown: number;
declare const GCKeyCodeEnd: number;
declare const GCKeyCodePageUp: number;
declare const GCKeyCodeScrollLock: number;
declare const GCKeyCodeF20: number;
declare const GCKeyCodeF18: number;
declare const GCKeyCodeF15: number;
declare const GCKeyCodeF11: number;
declare const GCKeyCodeF10: number;
declare const GCKeyCodeF9: number;
declare const GCKeyCodeF8: number;
declare const GCKeyCodeF7: number;
declare const GCKeyCodeF6: number;
declare const GCKeyCodeF4: number;
declare const GCKeyCodeF2: number;
declare const GCKeyCodeCapsLock: number;
declare const GCKeyCodeSlash: number;
declare const GCKeyCodeComma: number;
declare const GCKeyCodeGraveAccentAndTilde: number;
declare const GCKeyCodeQuote: number;
declare const GCKeyCodeBackslash: number;
declare const GCKeyCodeCloseBracket: number;
declare const GCKeyCodeOpenBracket: number;
declare const GCKeyCodeTab: number;
declare const GCKeyCodeEscape: number;
declare const GCKeyCodeReturnOrEnter: number;
declare const GCKeyCodeNine: number;
declare const GCKeyCodeEight: number;
declare const GCKeyCodeSeven: number;
declare const GCKeyCodeSix: number;
declare const GCKeyCodeFour: number;
declare const GCKeyCodeThree: number;
declare const GCKeyCodeTwo: number;
declare const GCKeyCodeOne: number;
declare const GCKeyCodeKeyZ: number;
declare const GCKeyCodeKeyY: number;
declare const GCKeyCodeKeyX: number;
declare const GCKeyCodeKeyW: number;
declare const GCKeyCodeKeyU: number;
declare const GCKeyCodeKeyR: number;
declare const GCKeyCodeKeyQ: number;
declare const GCKeyCodeKeyO: number;
declare const GCKeyCodeKeyM: number;
declare const GCKeyCodeKeyK: number;
declare const GCKeyCodeKeyI: number;
declare const GCKeyCodeKeyF: number;
declare const GCKeyCodeKeyE: number;
declare const GCKeyCodeKeyD: number;
declare const GCKeyCodeKeyC: number;
declare const GCKeyCodeKeyA: number;
declare const GCCurrentExtendedGamepadSnapshotDataVersion: interop.Enum<typeof GCExtendedGamepadSnapshotDataVersion>;
declare const GCInputPedalBrake: string;
declare const GCInputPedalAccelerator: string;
declare const GCInputSteeringWheel: string;
declare const GCInputDualShockTouchpadButton: string;
declare const GCInputXboxPaddleThree: string;
declare const GCInputXboxPaddleOne: string;
declare const GCInputButtonShare: string;
declare const GCInputButtonHome: string;
declare const GCInputRightTrigger: string;
declare const GCInputLeftTrigger: string;
declare const GCInputLeftBumper: string;
declare const GCInputRightShoulder: string;
declare const GCInputRightThumbstickButton: string;
declare const GCInputRightThumbstick: string;
declare const GCInputDirectionPad: string;
declare const GCInputButtonY: string;
declare const GCInputButtonA: string;
declare const GCProductCategoryKeyboard: string;
declare const GCProductCategoryMouse: string;
declare const GCProductCategoryCoalescedRemote: string;
declare const GCProductCategoryUniversalElectronicsRemote: string;
declare const GCProductCategorySiriRemote2ndGen: string;
declare const GCProductCategoryXboxOne: string;
declare const GCProductCategoryMFi: string;
declare const GCProductCategoryDualShock4: string;
declare const GCPoint2Zero: GCPoint2;
declare const GCKeyKeypad1: string;
declare const GCKeyLeftArrow: string;
declare const GCKeyF18: string;
declare const GCKeyCodeKeyH: number;
declare const GCKeyCodeKeyG: number;
declare const GCKeyU: string;
declare const GCInputDirectionalDpad: string;
declare const GCProductCategorySiriRemote1stGen: string;
declare const GCKeyLANG8: string;
declare const GCKeyF14: string;
declare const GCKeyKeypadPeriod: string;
declare const GCKeyKeypad8: string;
declare const GCKeyV: string;
declare const GCKeyCodeKeyL: number;
declare const GCKeyCodeLeftArrow: number;
declare const GCKeyCodeKeypad5: number;
declare const GCHapticsLocalityTriggers: string;
declare const GCHapticsLocalityLeftHandle: string;
declare const GCKeyApplication: string;
declare const GCKeyCodeKeyP: number;
declare const GCInputXboxPaddleTwo: string;
declare const GCKeyCodeHome: number;
declare const GCKeyCodeEqualSign: number;
declare const GCProductCategoryDualSense: string;
declare const GCKeyCodeF12: number;
declare const GCKeyQ: string;
declare const GCProductCategoryArcadeStick: string;
declare const GCKeyF12: string;
declare const GCKeyRightShift: string;
declare const GCInputButtonB: string;
declare const GCInputLeftPaddle: string;
declare const GCKeyInsert: string;
declare const GCKeyCodeInternational3: number;
declare const GCKeyOpenBracket: string;
declare const GCKeyLANG9: string;
declare const GCKeyCodeF17: number;
declare const GCKeyPause: string;
declare const GCKeyCodeHyphen: number;
declare const GCControllerDidStopBeingCurrentNotification: string;
declare const GCKeyCodeF16: number;
declare const GCKeyLeftShift: string;
declare const GCInputButtonOptions: string;
declare const GCKeyCodeF13: number;
declare const GCKeyN: string;
declare const GCKeyHome: string;
declare const GCKeyCodeF14: number;
declare const GCHapticsLocalityLeftTrigger: string;
declare const GCKeyD: string;
declare const GCKeyCodeKeyV: number;
declare const GCKeyCodeKeyB: number;
declare const GCInputDualShockTouchpadTwo: string;
declare const GCKeyCodeFive: number;
declare const GCKeyCodeRightAlt: number;
declare const GCInputPedalClutch: string;
declare const GCKeyGraveAccentAndTilde: string;
declare const GCKeyCodeKeyJ: number;
declare const GCInputShifter: string;
declare const GCKeyCodeInternational9: number;
declare const GCMouseDidBecomeCurrentNotification: string;
declare const GCKeyCodePeriod: number;
declare const GCInputButtonX: string;
declare const GCHapticDurationInfinite: number;
declare const GCKeyCodeSemicolon: number;
declare const GCKeyInternational5: string;
declare const GCHapticsLocalityDefault: string;
declare const GCKeyCodePrintScreen: number;
declare const GCKeyCodeKeypad1: number;
declare const GCKeyCodeInsert: number;
declare const GCKeyCodeLANG8: number;
declare const GCKeyCodeDeleteOrBackspace: number;
declare const GCKeyKeypad7: string;
declare const GCKeyCodeLANG7: number;
declare const GCKeyCodeKeyT: number;
declare const GCKeyCodeSpacebar: number;
declare const GCKeyPrintScreen: string;
declare const GCInputMicroGamepadDpad: string;
declare const GCKeyCodePause: number;
declare const GCKeyCodeLeftShift: number;
declare const GCKeyCodeKeypadHyphen: number;
declare const GCProductCategoryControlCenterRemote: string;
declare const GCControllerUserCustomizationsDidChangeNotification: string;
declare const GCKeyF15: string;
declare const GCProductCategoryHID: string;
declare const GCKeyCodeApplication: number;
declare const GCKeyQuote: string;
declare const GCInputLeftShoulder: string;
declare const GCKeyF16: string;
declare const GCInputLeftThumbstickButton: string;
declare const GCInputButtonMenu: string;
declare const GCDualSenseAdaptiveTriggerDiscretePositionCount: number;
declare const GCKeyTab: string;
declare const GCInputRightBumper: string;
declare const GCKeyRightAlt: string;
declare const GCHapticsLocalityRightHandle: string;
declare const GCKeyKeypad5: string;
declare const GCKeyCodeInternational6: number;
declare const GCKeyCodeLANG1: number;
declare const GCKeyCodeKeypadPlus: number;
declare const GCKeyK: string;
declare const GCKeyReturnOrEnter: string;
declare const GCKeyCodeKeyS: number;
declare const GCInputDualShockTouchpadOne: string;
declare const GCInputLeftThumbstick: string;
declare const GCKeyCodeRightControl: number;
declare const GCInputRightPaddle: string;
declare const GCKeyCodeKeyN: number;
declare const GCKeyLANG6: string;
declare const GCKeyCodeRightArrow: number;
declare const GCInputXboxPaddleFour: string;
declare const GCInputDirectionalCenterButton: string;
declare const GCKeyY: string;
declare const GCKeyCodeLANG6: number;
declare const GCKeyCodeKeypadNumLock: number;
declare const GCKeyCodeF1: number;
declare const GCKeyCodeDownArrow: number;
declare const GCCurrentMicroGamepadSnapshotDataVersion: interop.Enum<typeof GCMicroGamepadSnapshotDataVersion>;
declare const GCKeyDeleteOrBackspace: string;
declare const GCKeyUpArrow: string;
declare const GCKeyCodeNonUSPound: number;
declare const GCKeyS: string;
declare const GCKeyHyphen: string;
declare const GCKeyCodeF3: number;
declare const GCMouseDidConnectNotification: string;
declare const GCKeyInternational3: string;
declare const GCKeyCodeZero: number;
declare const GCKeyL: string;
declare const GCKeyCodePower: number;
declare const GCKeyCodeF5: number;
declare const GCKeyKeypad9: string;
declare const GCKeyInternational6: string;
declare const GCKeyCodeDeleteForward: number;
declare const GCKeyCodeF19: number;
declare const GCInputMicroGamepadButtonMenu: string;
declare const GCKeyCodeKeypad6: number;
declare const GCKeyRightArrow: string;
declare const GCKeyPower: string;
declare const GCKeyBackslash: string;
declare const GCInputDirectionalTouchSurfaceButton: string;
declare const GCExtendedGamepadSnapshotDataVersion: {
Version1: 256,
Version2: 257,
};
declare const GCTouchState: {
Up: 0,
Down: 1,
Moving: 2,
};
declare const GCDeviceBatteryState: {
Unknown: -1,
Discharging: 0,
Charging: 1,
Full: 2,
};
declare const GCDevicePhysicalInputElementChange: {
UnknownChange: -1,
NoChange: 0,
Changed: 1,
};
declare const GCDualSenseAdaptiveTriggerMode: {
Off: 0,
Feedback: 1,
Weapon: 2,
Vibration: 3,
SlopeFeedback: 4,
};
declare const GCControllerPlayerIndex: {
IndexUnset: -1,
Index1: 0,
Index2: 1,
Index3: 2,
Index4: 3,
};
declare const GCPhysicalInputSourceDirection: {
NotApplicable: 0,
Up: 1,
Right: 2,
Down: 4,
Left: 8,
};
declare const GCSystemGestureState: {
Enabled: 0,
AlwaysReceive: 1,
Disabled: 2,
};
declare const GCDualSenseAdaptiveTriggerStatus: {
Unknown: -1,
FeedbackNoLoad: 0,
FeedbackLoadApplied: 1,
WeaponReady: 2,
WeaponFiring: 3,
WeaponFired: 4,
VibrationNotVibrating: 5,
VibrationIsVibrating: 6,
SlopeFeedbackReady: 7,
SlopeFeedbackApplyingLoad: 8,
SlopeFeedbackFinished: 9,
};
declare const GCMicroGamepadSnapshotDataVersion: {
GCMicroGamepadSnapshotDataVersion1: 256,
};
declare class GCExtendedGamepadSnapshotData {
constructor(init?: GCExtendedGamepadSnapshotData);
version: number;
size: number;
dpadX: number;
dpadY: number;
buttonA: number;
buttonB: number;
buttonX: number;
buttonY: number;
leftShoulder: number;
rightShoulder: number;
leftThumbstickX: number;
leftThumbstickY: number;
rightThumbstickX: number;
rightThumbstickY: number;
leftTrigger: number;
rightTrigger: number;
supportsClickableThumbsticks: boolean;
leftThumbstickButton: boolean;
rightThumbstickButton: boolean;
}
declare class GCEulerAngles {
constructor(init?: GCEulerAngles);
pitch: number;
yaw: number;
roll: number;
}
declare class GCMicroGamepadSnapShotDataV100 {
constructor(init?: GCMicroGamepadSnapShotDataV100);
version: number;
size: number;
dpadX: number;
dpadY: number;
buttonA: number;
buttonX: number;
}
declare class GCExtendedGamepadSnapShotDataV100 {
constructor(init?: GCExtendedGamepadSnapShotDataV100);
version: number;
size: number;
dpadX: number;
dpadY: number;
buttonA: number;
buttonB: number;
buttonX: number;
buttonY: number;
leftShoulder: number;
rightShoulder: number;
leftThumbstickX: number;
leftThumbstickY: number;
rightThumbstickX: number;
rightThumbstickY: number;
leftTrigger: number;
rightTrigger: number;
}
declare class GCQuaternion {
constructor(init?: GCQuaternion);
x: number;
y: number;
z: number;
w: number;
}
declare class GCAcceleration {
constructor(init?: GCAcceleration);
x: number;
y: number;
z: number;
}
declare class GCDualSenseAdaptiveTriggerPositionalResistiveStrengths {
constructor(init?: GCDualSenseAdaptiveTriggerPositionalResistiveStrengths);
values: unknown /* const array */;
}
declare class GCDualSenseAdaptiveTriggerPositionalAmplitudes {
constructor(init?: GCDualSenseAdaptiveTriggerPositionalAmplitudes);
values: unknown /* const array */;
}
declare class GCPoint2 {
constructor(init?: GCPoint2);
x: number;
y: number;
}
declare class GCRotationRate {
constructor(init?: GCRotationRate);
x: number;
y: number;
z: number;
}
declare class GCMicroGamepadSnapshotData {
constructor(init?: GCMicroGamepadSnapshotData);
version: number;
size: number;
dpadX: number;
dpadY: number;
buttonA: number;
buttonX: number;
}
declare class GCGamepadSnapShotDataV100 {
constructor(init?: GCGamepadSnapShotDataV100);
version: number;
size: number;
dpadX: number;
dpadY: number;
buttonA: number;
buttonB: number;
buttonX: number;
buttonY: number;
leftShoulder: number;
rightShoulder: number;
}
declare function NSStringFromGCPoint2(point: GCPoint2): string;
declare function GCInputBackLeftButton(position: number): string;
declare function GCInputBackRightButton(position: number): string;
declare function GCInputArcadeButtonName(row: number, column: number): string;
declare function GCGamepadSnapShotDataV100FromNSData(snapshotData: interop.PointerConvertible, data: NSData): boolean;
declare function NSDataFromGCGamepadSnapShotDataV100(snapshotData: interop.PointerConvertible): NSData;
declare function GCExtendedGamepadSnapshotDataFromNSData(snapshotData: interop.PointerConvertible, data: NSData): boolean;
declare function NSDataFromGCExtendedGamepadSnapshotData(snapshotData: interop.PointerConvertible): NSData;
declare function GCExtendedGamepadSnapShotDataV100FromNSData(snapshotData: interop.PointerConvertible, data: NSData): boolean;
declare function NSDataFromGCExtendedGamepadSnapShotDataV100(snapshotData: interop.PointerConvertible): NSData;
declare function GCMicroGamepadSnapshotDataFromNSData(snapshotData: interop.PointerConvertible, data: NSData): boolean;
declare function NSDataFromGCMicroGamepadSnapshotData(snapshotData: interop.PointerConvertible): NSData;
declare function GCMicroGamepadSnapShotDataV100FromNSData(snapshotData: interop.PointerConvertible, data: NSData): boolean;
declare function NSDataFromGCMicroGamepadSnapShotDataV100(snapshotData: interop.PointerConvertible): NSData;
declare interface GCPhysicalInputSource extends NSObjectProtocol {
readonly elementAliases: NSSet;
readonly elementLocalizedName: string;
readonly sfSymbolsName: string;
readonly direction: interop.Enum<typeof GCPhysicalInputSourceDirection>;
}
declare class GCPhysicalInputSource extends NativeObject implements GCPhysicalInputSource {
}
declare interface GCAxis2DInput extends NSObjectProtocol {
valueDidChangeHandler: (p1: GCPhysicalInputElement, p2: GCAxis2DInput, p3: GCPoint2) => void;
readonly value: GCPoint2;
readonly isAnalog: boolean;
readonly canWrap: boolean;
readonly lastValueTimestamp: number;
readonly lastValueLatency: number;
readonly sources: NSSet;
}
declare class GCAxis2DInput extends NativeObject implements GCAxis2DInput {
}
declare interface GCPressedStateInput extends NSObjectProtocol {
pressedDidChangeHandler: (p1: GCPhysicalInputElement, p2: GCPressedStateInput, p3: boolean) => void;
readonly isPressed: boolean;
readonly lastPressedStateTimestamp: number;
readonly lastPressedStateLatency: number;
readonly sources: NSSet;
}
declare class GCPressedStateInput extends NativeObject implements GCPressedStateInput {
}
declare interface GCAxisInput extends NSObjectProtocol {
valueDidChangeHandler: (p1: GCPhysicalInputElement, p2: GCAxisInput, p3: number) => void;
readonly value: number;
readonly isAnalog: boolean;
readonly canWrap: boolean;
readonly lastValueTimestamp: number;
readonly lastValueLatency: number;
readonly sources: NSSet;
}
declare class GCAxisInput extends NativeObject implements GCAxisInput {
}
declare interface GCDirectionPadElementName extends GCPhysicalInputElementName {
}
declare class GCDirectionPadElementName extends NativeObject implements GCDirectionPadElementName {
}
declare interface GCSwitchElementName extends GCPhysicalInputElementName {
}
declare class GCSwitchElementName extends NativeObject implements GCSwitchElementName {
}