ohzi-core 9.5.2 → 10.0.0

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.
package/types/Input.d.ts DELETED
@@ -1,183 +0,0 @@
1
-
2
- export { input as Input };
3
- declare const input: Input;
4
- declare class Input {
5
- /**
6
- * Works for left mouse button or first touch on the screen (primary touch).
7
- */
8
- left_mouse_button_pressed: boolean;
9
- /**
10
- * Works for left mouse button or first touch on the screen (primary touch).
11
- */
12
- left_mouse_button_down: boolean;
13
- /**
14
- * Works for left mouse button or first touch on the screen (primary touch).
15
- */
16
- left_mouse_button_released: boolean;
17
-
18
- /**
19
- * Mouse only.
20
- */
21
- middle_mouse_button_pressed: boolean;
22
- /**
23
- * Mouse only.
24
- */
25
- middle_mouse_button_down: boolean;
26
- /**
27
- * Mouse only.
28
- */
29
- middle_mouse_button_released: boolean;
30
-
31
- /**
32
- * Mouse only.
33
- */
34
- right_mouse_button_pressed: boolean;
35
- /**
36
- * Mouse only.
37
- */
38
- right_mouse_button_down: boolean;
39
- /**
40
- * Mouse only.
41
- */
42
- right_mouse_button_released: boolean;
43
-
44
- /**
45
- * Mouse and primary touch.
46
- */
47
- clicked: boolean;
48
-
49
- /**
50
- * Screen coordinates of the mouse (or primary touch) position.
51
- */
52
- pointer_pos: {
53
- x: number;
54
- y: number;
55
- };
56
-
57
- /**
58
- * Difference between previous position and current position.
59
- */
60
- pointer_pos_delta: {
61
- x: number;
62
- y: number;
63
- };
64
-
65
- /**
66
- * Screen coordinates of the mouse (or primary touch) position, where the origin is in the upper left corner (browser coordinates).
67
- */
68
- html_pointer_pos: {
69
- x: number;
70
- y: number;
71
- };
72
-
73
- /**
74
- * The center of all active touches. If using mouse, this is the same as pointer_pos.
75
- */
76
- pointer_center: {
77
- x: number;
78
- y: number;
79
- };
80
-
81
- /**
82
- * The center of all active touches. If using mouse, this is the same as pointer_pos.
83
- */
84
- pointer_center_delta: {
85
- x: number;
86
- y: number;
87
- };
88
-
89
- /**
90
- * [-1..1] the center of all active touches. If using mouse, this is the same as pointer_pos.
91
- */
92
- pointer_center_NDC: {
93
- x: number;
94
- y: number;
95
- };
96
-
97
- /**
98
- * [-1..1] difference between previous normalized center and current one.
99
- */
100
- pointer_center_NDC_delta: {
101
- x: number;
102
- y: number;
103
- };
104
-
105
- /**
106
- * Normalized [-1..1] device coordinates for mouse or primary touch.
107
- */
108
- NDC: {
109
- x: number;
110
- y: number;
111
- };
112
-
113
- /**
114
- * [-1..1] difference between previous normalized position and current normalized position.
115
- */
116
- NDC_delta: {
117
- x: number;
118
- y: number;
119
- };
120
-
121
- /**
122
- * Normalized [-1..1] device coordinates for mouse or primary touch, but in browser space (upper left corner maps to <-1,-1>).
123
- */
124
- html_NDC: {
125
- x: number;
126
- y: number;
127
- };
128
-
129
- /**
130
- * Normalized [-1..1] device coordinates for mouse or primary touch, captured when left click is pressed.
131
- */
132
- captured_NDC: {
133
- x: number;
134
- y: number;
135
- };
136
-
137
- current_NDC_delta: {
138
- x: number;
139
- y: number;
140
- };
141
-
142
- /**
143
- * This is equivalent to the mouse wheel (-1, 0, 1) or dragging with one finger [-x..x] measured in pixels.
144
- */
145
- scroll_delta: number;
146
-
147
- /**
148
- * This is equivalent to the mouse wheel (-1, 0, 1) or pinching with two fingers [-x..x] measured in pixels.
149
- */
150
- zoom_delta: number;
151
-
152
- /**
153
- * Returns 1 if any mouse button is down, or return the amount of active touches.
154
- */
155
- pointer_count: number;
156
-
157
- /**
158
- * True if the mouse or primary touch is contained within the bounds of the subregion
159
- */
160
- pointer_is_within_bounds: boolean;
161
-
162
- /**
163
- * True if the pointer is over an html element
164
- */
165
- pointer_is_over_element(html_element: any): boolean;
166
-
167
- /**
168
- * Call this at the beginning of the current frame.
169
- */
170
- update(): void;
171
-
172
- /**
173
- * Call this at the end of the current frame.
174
- */
175
- clear(): void;
176
-
177
- keyboard: KeyboardInput;
178
-
179
- init(container: any, keyboard_input_container: any): void;
180
- dispose(): void;
181
- }
182
-
183
- import { KeyboardInput } from "./KeyboardInput";