unity-types 6000.3.0 → 6000.3.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.
@@ -1,8 +1,203 @@
1
- // Unity 6000.3 - UnityEngine.InputLegacyModule
2
- // Generated by OneJS Type Generator
3
-
4
1
  declare namespace CS {
2
+ const __keep_incompatibility: symbol;
3
+
5
4
  namespace UnityEngine {
6
- // TODO: Generate from Type Generator
5
+ class AndroidInput {
6
+ protected [__keep_incompatibility]: never;
7
+ public static get touchCountSecondary(): number;
8
+ public static get secondaryTouchEnabled(): boolean;
9
+ public static get secondaryTouchWidth(): number;
10
+ public static get secondaryTouchHeight(): number;
11
+ public static GetSecondaryTouch($index: number): UnityEngine.Touch;
12
+ }
13
+
14
+ enum TouchPhase {
15
+ Began = 0,
16
+ Moved = 1,
17
+ Stationary = 2,
18
+ Ended = 3,
19
+ Canceled = 4
20
+ }
21
+
22
+ enum IMECompositionMode {
23
+ Auto = 0,
24
+ On = 1,
25
+ Off = 2
26
+ }
27
+
28
+ enum TouchType {
29
+ Direct = 0,
30
+ Indirect = 1,
31
+ Stylus = 2
32
+ }
33
+
34
+ class Touch {
35
+ protected [__keep_incompatibility]: never;
36
+ public fingerId: number;
37
+ public position: UnityEngine.Vector2;
38
+ public rawPosition: UnityEngine.Vector2;
39
+ public deltaPosition: UnityEngine.Vector2;
40
+ public deltaTime: number;
41
+ public tapCount: number;
42
+ public phase: UnityEngine.TouchPhase;
43
+ public pressure: number;
44
+ public maximumPossiblePressure: number;
45
+ public type: UnityEngine.TouchType;
46
+ public altitudeAngle: number;
47
+ public azimuthAngle: number;
48
+ public radius: number;
49
+ public radiusVariance: number;
50
+ }
51
+
52
+ enum PenStatus {
53
+ None = 0,
54
+ Contact = 1,
55
+ Barrel = 2,
56
+ Inverted = 4,
57
+ Eraser = 8
58
+ }
59
+
60
+ enum PenEventType {
61
+ NoContact = 0,
62
+ PenDown = 1,
63
+ PenUp = 2
64
+ }
65
+
66
+ class PenData {
67
+ protected [__keep_incompatibility]: never;
68
+ public position: UnityEngine.Vector2;
69
+ public tilt: UnityEngine.Vector2;
70
+ public penStatus: UnityEngine.PenStatus;
71
+ public twist: number;
72
+ public pressure: number;
73
+ public contactType: UnityEngine.PenEventType;
74
+ public deltaPos: UnityEngine.Vector2;
75
+ }
76
+
77
+ enum DeviceOrientation {
78
+ Unknown = 0,
79
+ Portrait = 1,
80
+ PortraitUpsideDown = 2,
81
+ LandscapeLeft = 3,
82
+ LandscapeRight = 4,
83
+ FaceUp = 5,
84
+ FaceDown = 6
85
+ }
86
+
87
+ class AccelerationEvent {
88
+ protected [__keep_incompatibility]: never;
89
+ public get acceleration(): UnityEngine.Vector3;
90
+ public get deltaTime(): number;
91
+ }
92
+
93
+ class Gyroscope {
94
+ protected [__keep_incompatibility]: never;
95
+ public get rotationRate(): UnityEngine.Vector3;
96
+ public get rotationRateUnbiased(): UnityEngine.Vector3;
97
+ public get gravity(): UnityEngine.Vector3;
98
+ public get userAcceleration(): UnityEngine.Vector3;
99
+ public get attitude(): UnityEngine.Quaternion;
100
+ public enabled: boolean;
101
+ public updateInterval: number;
102
+ }
103
+
104
+ class LocationInfo {
105
+ protected [__keep_incompatibility]: never;
106
+ public get latitude(): number;
107
+ public get longitude(): number;
108
+ public get altitude(): number;
109
+ public get horizontalAccuracy(): number;
110
+ public get verticalAccuracy(): number;
111
+ public get timestamp(): number;
112
+ }
113
+
114
+ enum LocationServiceStatus {
115
+ Stopped = 0,
116
+ Initializing = 1,
117
+ Running = 2,
118
+ Failed = 3
119
+ }
120
+
121
+ class LocationService {
122
+ protected [__keep_incompatibility]: never;
123
+ public get isEnabledByUser(): boolean;
124
+ public get status(): UnityEngine.LocationServiceStatus;
125
+ public get lastData(): UnityEngine.LocationInfo;
126
+ constructor();
127
+ public Start($desiredAccuracyInMeters: number, $updateDistanceInMeters: number): void;
128
+ public Start($desiredAccuracyInMeters: number): void;
129
+ public Start(): void;
130
+ public Stop(): void;
131
+ }
132
+
133
+ class Compass {
134
+ protected [__keep_incompatibility]: never;
135
+ public get magneticHeading(): number;
136
+ public get trueHeading(): number;
137
+ public get headingAccuracy(): number;
138
+ public get rawVector(): UnityEngine.Vector3;
139
+ public get timestamp(): number;
140
+ public enabled: boolean;
141
+ constructor();
142
+ }
143
+
144
+ class Input {
145
+ protected [__keep_incompatibility]: never;
146
+ public static simulateMouseWithTouches: boolean;
147
+ public static get anyKey(): boolean;
148
+ public static get anyKeyDown(): boolean;
149
+ public static get inputString(): string;
150
+ public static get mousePosition(): UnityEngine.Vector3;
151
+ public static get mousePositionDelta(): UnityEngine.Vector3;
152
+ public static get mouseScrollDelta(): UnityEngine.Vector2;
153
+ public static imeCompositionMode: UnityEngine.IMECompositionMode;
154
+ public static get compositionString(): string;
155
+ public static get imeIsSelected(): boolean;
156
+ public static compositionCursorPos: UnityEngine.Vector2;
157
+ public static eatKeyPressOnTextFieldFocus: boolean;
158
+ public static get mousePresent(): boolean;
159
+ public static get touchSupported(): boolean;
160
+ public static get penEventCount(): number;
161
+ public static get touchCount(): number;
162
+ public static get touchPressureSupported(): boolean;
163
+ public static get stylusTouchSupported(): boolean;
164
+ public static multiTouchEnabled: boolean;
165
+ public static get isGyroAvailable(): boolean;
166
+ public static get deviceOrientation(): UnityEngine.DeviceOrientation;
167
+ public static get acceleration(): UnityEngine.Vector3;
168
+ public static compensateSensors: boolean;
169
+ public static get accelerationEventCount(): number;
170
+ public static backButtonLeavesApp: boolean;
171
+ public static get location(): UnityEngine.LocationService;
172
+ public static get compass(): UnityEngine.Compass;
173
+ public static get gyro(): UnityEngine.Gyroscope;
174
+ public static get touches(): System.Array$1<UnityEngine.Touch>;
175
+ public static get accelerationEvents(): System.Array$1<UnityEngine.AccelerationEvent>;
176
+ constructor();
177
+ public static GetAxis($axisName: string): number;
178
+ public static GetAxisRaw($axisName: string): number;
179
+ public static GetButton($buttonName: string): boolean;
180
+ public static GetButtonDown($buttonName: string): boolean;
181
+ public static GetButtonUp($buttonName: string): boolean;
182
+ public static GetMouseButton($button: number): boolean;
183
+ public static GetMouseButtonDown($button: number): boolean;
184
+ public static GetMouseButtonUp($button: number): boolean;
185
+ public static ResetInputAxes(): void;
186
+ public static IsJoystickPreconfigured($joystickName: string): boolean;
187
+ public static GetJoystickNames(): System.Array$1<string>;
188
+ public static GetTouch($index: number): UnityEngine.Touch;
189
+ public static GetPenEvent($index: number): UnityEngine.PenData;
190
+ public static GetLastPenContactEvent(): UnityEngine.PenData;
191
+ public static ResetPenEvents(): void;
192
+ public static ClearLastPenContactEvent(): void;
193
+ public static GetAccelerationEvent($index: number): UnityEngine.AccelerationEvent;
194
+ public static GetKey($key: UnityEngine.KeyCode): boolean;
195
+ public static GetKey($name: string): boolean;
196
+ public static GetKeyUp($key: UnityEngine.KeyCode): boolean;
197
+ public static GetKeyUp($name: string): boolean;
198
+ public static GetKeyDown($key: UnityEngine.KeyCode): boolean;
199
+ public static GetKeyDown($name: string): boolean;
200
+ }
201
+
7
202
  }
8
203
  }