winrt-Windows.UI.Input.Spatial 2.2.0__cp313-cp313-win_arm64.whl
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.
- winrt/_winrt_windows_ui_input_spatial.cp313-win_arm64.pyd +0 -0
- winrt/_winrt_windows_ui_input_spatial.pyi +384 -0
- winrt/windows/ui/input/spatial/__init__.py +107 -0
- winrt/windows/ui/input/spatial/py.typed +0 -0
- winrt_Windows.UI.Input.Spatial-2.2.0.dist-info/METADATA +33 -0
- winrt_Windows.UI.Input.Spatial-2.2.0.dist-info/RECORD +8 -0
- winrt_Windows.UI.Input.Spatial-2.2.0.dist-info/WHEEL +5 -0
- winrt_Windows.UI.Input.Spatial-2.2.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.devices.haptics as windows_devices_haptics
|
|
13
|
+
import winrt.windows.devices.power as windows_devices_power
|
|
14
|
+
import winrt.windows.foundation as windows_foundation
|
|
15
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
16
|
+
import winrt.windows.foundation.numerics as windows_foundation_numerics
|
|
17
|
+
import winrt.windows.perception as windows_perception
|
|
18
|
+
import winrt.windows.perception.people as windows_perception_people
|
|
19
|
+
import winrt.windows.perception.spatial as windows_perception_spatial
|
|
20
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
21
|
+
|
|
22
|
+
from winrt.windows.ui.input.spatial import SpatialGestureSettings, SpatialInteractionPressKind, SpatialInteractionSourceHandedness, SpatialInteractionSourceKind, SpatialInteractionSourcePositionAccuracy
|
|
23
|
+
|
|
24
|
+
Self = typing.TypeVar('Self')
|
|
25
|
+
|
|
26
|
+
@typing.final
|
|
27
|
+
class SpatialGestureRecognizer(winrt.system.Object):
|
|
28
|
+
@staticmethod
|
|
29
|
+
def _from(obj: winrt.system.Object, /) -> SpatialGestureRecognizer: ...
|
|
30
|
+
def __new__(cls: typing.Type[SpatialGestureRecognizer], settings: SpatialGestureSettings) -> SpatialGestureRecognizer: ...
|
|
31
|
+
def cancel_pending_gestures(self) -> None: ...
|
|
32
|
+
def capture_interaction(self, interaction: typing.Optional[SpatialInteraction], /) -> None: ...
|
|
33
|
+
def try_set_gesture_settings(self, settings: SpatialGestureSettings, /) -> bool: ...
|
|
34
|
+
def add_hold_canceled(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialHoldCanceledEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
35
|
+
def remove_hold_canceled(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
36
|
+
def add_hold_completed(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialHoldCompletedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
37
|
+
def remove_hold_completed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
38
|
+
def add_hold_started(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialHoldStartedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
39
|
+
def remove_hold_started(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
40
|
+
def add_manipulation_canceled(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialManipulationCanceledEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
41
|
+
def remove_manipulation_canceled(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
42
|
+
def add_manipulation_completed(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialManipulationCompletedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
43
|
+
def remove_manipulation_completed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
44
|
+
def add_manipulation_started(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialManipulationStartedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
45
|
+
def remove_manipulation_started(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
46
|
+
def add_manipulation_updated(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialManipulationUpdatedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
47
|
+
def remove_manipulation_updated(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
48
|
+
def add_navigation_canceled(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialNavigationCanceledEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
49
|
+
def remove_navigation_canceled(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
50
|
+
def add_navigation_completed(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialNavigationCompletedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
51
|
+
def remove_navigation_completed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
52
|
+
def add_navigation_started(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialNavigationStartedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
53
|
+
def remove_navigation_started(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
54
|
+
def add_navigation_updated(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialNavigationUpdatedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
55
|
+
def remove_navigation_updated(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
56
|
+
def add_recognition_ended(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialRecognitionEndedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
57
|
+
def remove_recognition_ended(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
58
|
+
def add_recognition_started(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialRecognitionStartedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
59
|
+
def remove_recognition_started(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
60
|
+
def add_tapped(self, handler: windows_foundation.TypedEventHandler[SpatialGestureRecognizer, SpatialTappedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
61
|
+
def remove_tapped(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
62
|
+
@_property
|
|
63
|
+
def gesture_settings(self) -> SpatialGestureSettings: ...
|
|
64
|
+
|
|
65
|
+
@typing.final
|
|
66
|
+
class SpatialHoldCanceledEventArgs(winrt.system.Object):
|
|
67
|
+
@staticmethod
|
|
68
|
+
def _from(obj: winrt.system.Object, /) -> SpatialHoldCanceledEventArgs: ...
|
|
69
|
+
@_property
|
|
70
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
71
|
+
|
|
72
|
+
@typing.final
|
|
73
|
+
class SpatialHoldCompletedEventArgs(winrt.system.Object):
|
|
74
|
+
@staticmethod
|
|
75
|
+
def _from(obj: winrt.system.Object, /) -> SpatialHoldCompletedEventArgs: ...
|
|
76
|
+
@_property
|
|
77
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
78
|
+
|
|
79
|
+
@typing.final
|
|
80
|
+
class SpatialHoldStartedEventArgs(winrt.system.Object):
|
|
81
|
+
@staticmethod
|
|
82
|
+
def _from(obj: winrt.system.Object, /) -> SpatialHoldStartedEventArgs: ...
|
|
83
|
+
def try_get_pointer_pose(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialPointerPose]: ...
|
|
84
|
+
@_property
|
|
85
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
86
|
+
|
|
87
|
+
@typing.final
|
|
88
|
+
class SpatialInteraction(winrt.system.Object):
|
|
89
|
+
@staticmethod
|
|
90
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteraction: ...
|
|
91
|
+
@_property
|
|
92
|
+
def source_state(self) -> typing.Optional[SpatialInteractionSourceState]: ...
|
|
93
|
+
|
|
94
|
+
@typing.final
|
|
95
|
+
class SpatialInteractionController(winrt.system.Object):
|
|
96
|
+
@staticmethod
|
|
97
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteractionController: ...
|
|
98
|
+
def try_get_battery_report(self) -> typing.Optional[windows_devices_power.BatteryReport]: ...
|
|
99
|
+
def try_get_renderable_model_async(self) -> windows_foundation.IAsyncOperation[windows_storage_streams.IRandomAccessStreamWithContentType]: ...
|
|
100
|
+
@_property
|
|
101
|
+
def has_thumbstick(self) -> bool: ...
|
|
102
|
+
@_property
|
|
103
|
+
def has_touchpad(self) -> bool: ...
|
|
104
|
+
@_property
|
|
105
|
+
def product_id(self) -> winrt.system.UInt16: ...
|
|
106
|
+
@_property
|
|
107
|
+
def simple_haptics_controller(self) -> typing.Optional[windows_devices_haptics.SimpleHapticsController]: ...
|
|
108
|
+
@_property
|
|
109
|
+
def vendor_id(self) -> winrt.system.UInt16: ...
|
|
110
|
+
@_property
|
|
111
|
+
def version(self) -> winrt.system.UInt16: ...
|
|
112
|
+
|
|
113
|
+
@typing.final
|
|
114
|
+
class SpatialInteractionControllerProperties(winrt.system.Object):
|
|
115
|
+
@staticmethod
|
|
116
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteractionControllerProperties: ...
|
|
117
|
+
@_property
|
|
118
|
+
def is_thumbstick_pressed(self) -> bool: ...
|
|
119
|
+
@_property
|
|
120
|
+
def is_touchpad_pressed(self) -> bool: ...
|
|
121
|
+
@_property
|
|
122
|
+
def is_touchpad_touched(self) -> bool: ...
|
|
123
|
+
@_property
|
|
124
|
+
def thumbstick_x(self) -> winrt.system.Double: ...
|
|
125
|
+
@_property
|
|
126
|
+
def thumbstick_y(self) -> winrt.system.Double: ...
|
|
127
|
+
@_property
|
|
128
|
+
def touchpad_x(self) -> winrt.system.Double: ...
|
|
129
|
+
@_property
|
|
130
|
+
def touchpad_y(self) -> winrt.system.Double: ...
|
|
131
|
+
|
|
132
|
+
@typing.final
|
|
133
|
+
class SpatialInteractionDetectedEventArgs(winrt.system.Object):
|
|
134
|
+
@staticmethod
|
|
135
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteractionDetectedEventArgs: ...
|
|
136
|
+
def try_get_pointer_pose(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialPointerPose]: ...
|
|
137
|
+
@_property
|
|
138
|
+
def interaction(self) -> typing.Optional[SpatialInteraction]: ...
|
|
139
|
+
@_property
|
|
140
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
141
|
+
@_property
|
|
142
|
+
def interaction_source(self) -> typing.Optional[SpatialInteractionSource]: ...
|
|
143
|
+
|
|
144
|
+
@typing.final
|
|
145
|
+
class SpatialInteractionManager_Static(type):
|
|
146
|
+
def get_for_current_view(cls) -> typing.Optional[SpatialInteractionManager]: ...
|
|
147
|
+
def is_source_kind_supported(cls, kind: SpatialInteractionSourceKind, /) -> bool: ...
|
|
148
|
+
|
|
149
|
+
@typing.final
|
|
150
|
+
class SpatialInteractionManager(winrt.system.Object, metaclass=SpatialInteractionManager_Static):
|
|
151
|
+
@staticmethod
|
|
152
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteractionManager: ...
|
|
153
|
+
def get_detected_sources_at_timestamp(self, time_stamp: typing.Optional[windows_perception.PerceptionTimestamp], /) -> typing.Optional[windows_foundation_collections.IVectorView[SpatialInteractionSourceState]]: ...
|
|
154
|
+
def add_interaction_detected(self, handler: windows_foundation.TypedEventHandler[SpatialInteractionManager, SpatialInteractionDetectedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
155
|
+
def remove_interaction_detected(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
156
|
+
def add_source_detected(self, handler: windows_foundation.TypedEventHandler[SpatialInteractionManager, SpatialInteractionSourceEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
157
|
+
def remove_source_detected(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
158
|
+
def add_source_lost(self, handler: windows_foundation.TypedEventHandler[SpatialInteractionManager, SpatialInteractionSourceEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
159
|
+
def remove_source_lost(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
160
|
+
def add_source_pressed(self, handler: windows_foundation.TypedEventHandler[SpatialInteractionManager, SpatialInteractionSourceEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
161
|
+
def remove_source_pressed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
162
|
+
def add_source_released(self, handler: windows_foundation.TypedEventHandler[SpatialInteractionManager, SpatialInteractionSourceEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
163
|
+
def remove_source_released(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
164
|
+
def add_source_updated(self, handler: windows_foundation.TypedEventHandler[SpatialInteractionManager, SpatialInteractionSourceEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
165
|
+
def remove_source_updated(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
166
|
+
|
|
167
|
+
@typing.final
|
|
168
|
+
class SpatialInteractionSource(winrt.system.Object):
|
|
169
|
+
@staticmethod
|
|
170
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteractionSource: ...
|
|
171
|
+
def try_create_hand_mesh_observer(self) -> typing.Optional[windows_perception_people.HandMeshObserver]: ...
|
|
172
|
+
def try_create_hand_mesh_observer_async(self) -> windows_foundation.IAsyncOperation[windows_perception_people.HandMeshObserver]: ...
|
|
173
|
+
def try_get_state_at_timestamp(self, timestamp: typing.Optional[windows_perception.PerceptionTimestamp], /) -> typing.Optional[SpatialInteractionSourceState]: ...
|
|
174
|
+
@_property
|
|
175
|
+
def id(self) -> winrt.system.UInt32: ...
|
|
176
|
+
@_property
|
|
177
|
+
def kind(self) -> SpatialInteractionSourceKind: ...
|
|
178
|
+
@_property
|
|
179
|
+
def controller(self) -> typing.Optional[SpatialInteractionController]: ...
|
|
180
|
+
@_property
|
|
181
|
+
def is_grasp_supported(self) -> bool: ...
|
|
182
|
+
@_property
|
|
183
|
+
def is_menu_supported(self) -> bool: ...
|
|
184
|
+
@_property
|
|
185
|
+
def is_pointing_supported(self) -> bool: ...
|
|
186
|
+
@_property
|
|
187
|
+
def handedness(self) -> SpatialInteractionSourceHandedness: ...
|
|
188
|
+
|
|
189
|
+
@typing.final
|
|
190
|
+
class SpatialInteractionSourceEventArgs(winrt.system.Object):
|
|
191
|
+
@staticmethod
|
|
192
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteractionSourceEventArgs: ...
|
|
193
|
+
@_property
|
|
194
|
+
def state(self) -> typing.Optional[SpatialInteractionSourceState]: ...
|
|
195
|
+
@_property
|
|
196
|
+
def press_kind(self) -> SpatialInteractionPressKind: ...
|
|
197
|
+
|
|
198
|
+
@typing.final
|
|
199
|
+
class SpatialInteractionSourceLocation(winrt.system.Object):
|
|
200
|
+
@staticmethod
|
|
201
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteractionSourceLocation: ...
|
|
202
|
+
@_property
|
|
203
|
+
def position(self) -> typing.Optional[typing.Optional[windows_foundation_numerics.Vector3]]: ...
|
|
204
|
+
@_property
|
|
205
|
+
def velocity(self) -> typing.Optional[typing.Optional[windows_foundation_numerics.Vector3]]: ...
|
|
206
|
+
@_property
|
|
207
|
+
def orientation(self) -> typing.Optional[typing.Optional[windows_foundation_numerics.Quaternion]]: ...
|
|
208
|
+
@_property
|
|
209
|
+
def angular_velocity(self) -> typing.Optional[typing.Optional[windows_foundation_numerics.Vector3]]: ...
|
|
210
|
+
@_property
|
|
211
|
+
def position_accuracy(self) -> SpatialInteractionSourcePositionAccuracy: ...
|
|
212
|
+
@_property
|
|
213
|
+
def source_pointer_pose(self) -> typing.Optional[SpatialPointerInteractionSourcePose]: ...
|
|
214
|
+
|
|
215
|
+
@typing.final
|
|
216
|
+
class SpatialInteractionSourceProperties(winrt.system.Object):
|
|
217
|
+
@staticmethod
|
|
218
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteractionSourceProperties: ...
|
|
219
|
+
def try_get_location(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialInteractionSourceLocation]: ...
|
|
220
|
+
def try_get_source_loss_mitigation_direction(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[typing.Optional[windows_foundation_numerics.Vector3]]: ...
|
|
221
|
+
@_property
|
|
222
|
+
def source_loss_risk(self) -> winrt.system.Double: ...
|
|
223
|
+
|
|
224
|
+
@typing.final
|
|
225
|
+
class SpatialInteractionSourceState(winrt.system.Object):
|
|
226
|
+
@staticmethod
|
|
227
|
+
def _from(obj: winrt.system.Object, /) -> SpatialInteractionSourceState: ...
|
|
228
|
+
def try_get_hand_pose(self) -> typing.Optional[windows_perception_people.HandPose]: ...
|
|
229
|
+
def try_get_pointer_pose(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialPointerPose]: ...
|
|
230
|
+
@_property
|
|
231
|
+
def is_pressed(self) -> bool: ...
|
|
232
|
+
@_property
|
|
233
|
+
def properties(self) -> typing.Optional[SpatialInteractionSourceProperties]: ...
|
|
234
|
+
@_property
|
|
235
|
+
def source(self) -> typing.Optional[SpatialInteractionSource]: ...
|
|
236
|
+
@_property
|
|
237
|
+
def timestamp(self) -> typing.Optional[windows_perception.PerceptionTimestamp]: ...
|
|
238
|
+
@_property
|
|
239
|
+
def controller_properties(self) -> typing.Optional[SpatialInteractionControllerProperties]: ...
|
|
240
|
+
@_property
|
|
241
|
+
def is_grasped(self) -> bool: ...
|
|
242
|
+
@_property
|
|
243
|
+
def is_menu_pressed(self) -> bool: ...
|
|
244
|
+
@_property
|
|
245
|
+
def is_select_pressed(self) -> bool: ...
|
|
246
|
+
@_property
|
|
247
|
+
def select_pressed_value(self) -> winrt.system.Double: ...
|
|
248
|
+
|
|
249
|
+
@typing.final
|
|
250
|
+
class SpatialManipulationCanceledEventArgs(winrt.system.Object):
|
|
251
|
+
@staticmethod
|
|
252
|
+
def _from(obj: winrt.system.Object, /) -> SpatialManipulationCanceledEventArgs: ...
|
|
253
|
+
@_property
|
|
254
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
255
|
+
|
|
256
|
+
@typing.final
|
|
257
|
+
class SpatialManipulationCompletedEventArgs(winrt.system.Object):
|
|
258
|
+
@staticmethod
|
|
259
|
+
def _from(obj: winrt.system.Object, /) -> SpatialManipulationCompletedEventArgs: ...
|
|
260
|
+
def try_get_cumulative_delta(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialManipulationDelta]: ...
|
|
261
|
+
@_property
|
|
262
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
263
|
+
|
|
264
|
+
@typing.final
|
|
265
|
+
class SpatialManipulationDelta(winrt.system.Object):
|
|
266
|
+
@staticmethod
|
|
267
|
+
def _from(obj: winrt.system.Object, /) -> SpatialManipulationDelta: ...
|
|
268
|
+
@_property
|
|
269
|
+
def translation(self) -> windows_foundation_numerics.Vector3: ...
|
|
270
|
+
|
|
271
|
+
@typing.final
|
|
272
|
+
class SpatialManipulationStartedEventArgs(winrt.system.Object):
|
|
273
|
+
@staticmethod
|
|
274
|
+
def _from(obj: winrt.system.Object, /) -> SpatialManipulationStartedEventArgs: ...
|
|
275
|
+
def try_get_pointer_pose(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialPointerPose]: ...
|
|
276
|
+
@_property
|
|
277
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
278
|
+
|
|
279
|
+
@typing.final
|
|
280
|
+
class SpatialManipulationUpdatedEventArgs(winrt.system.Object):
|
|
281
|
+
@staticmethod
|
|
282
|
+
def _from(obj: winrt.system.Object, /) -> SpatialManipulationUpdatedEventArgs: ...
|
|
283
|
+
def try_get_cumulative_delta(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialManipulationDelta]: ...
|
|
284
|
+
@_property
|
|
285
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
286
|
+
|
|
287
|
+
@typing.final
|
|
288
|
+
class SpatialNavigationCanceledEventArgs(winrt.system.Object):
|
|
289
|
+
@staticmethod
|
|
290
|
+
def _from(obj: winrt.system.Object, /) -> SpatialNavigationCanceledEventArgs: ...
|
|
291
|
+
@_property
|
|
292
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
293
|
+
|
|
294
|
+
@typing.final
|
|
295
|
+
class SpatialNavigationCompletedEventArgs(winrt.system.Object):
|
|
296
|
+
@staticmethod
|
|
297
|
+
def _from(obj: winrt.system.Object, /) -> SpatialNavigationCompletedEventArgs: ...
|
|
298
|
+
@_property
|
|
299
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
300
|
+
@_property
|
|
301
|
+
def normalized_offset(self) -> windows_foundation_numerics.Vector3: ...
|
|
302
|
+
|
|
303
|
+
@typing.final
|
|
304
|
+
class SpatialNavigationStartedEventArgs(winrt.system.Object):
|
|
305
|
+
@staticmethod
|
|
306
|
+
def _from(obj: winrt.system.Object, /) -> SpatialNavigationStartedEventArgs: ...
|
|
307
|
+
def try_get_pointer_pose(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialPointerPose]: ...
|
|
308
|
+
@_property
|
|
309
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
310
|
+
@_property
|
|
311
|
+
def is_navigating_x(self) -> bool: ...
|
|
312
|
+
@_property
|
|
313
|
+
def is_navigating_y(self) -> bool: ...
|
|
314
|
+
@_property
|
|
315
|
+
def is_navigating_z(self) -> bool: ...
|
|
316
|
+
|
|
317
|
+
@typing.final
|
|
318
|
+
class SpatialNavigationUpdatedEventArgs(winrt.system.Object):
|
|
319
|
+
@staticmethod
|
|
320
|
+
def _from(obj: winrt.system.Object, /) -> SpatialNavigationUpdatedEventArgs: ...
|
|
321
|
+
@_property
|
|
322
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
323
|
+
@_property
|
|
324
|
+
def normalized_offset(self) -> windows_foundation_numerics.Vector3: ...
|
|
325
|
+
|
|
326
|
+
@typing.final
|
|
327
|
+
class SpatialPointerInteractionSourcePose(winrt.system.Object):
|
|
328
|
+
@staticmethod
|
|
329
|
+
def _from(obj: winrt.system.Object, /) -> SpatialPointerInteractionSourcePose: ...
|
|
330
|
+
@_property
|
|
331
|
+
def forward_direction(self) -> windows_foundation_numerics.Vector3: ...
|
|
332
|
+
@_property
|
|
333
|
+
def position(self) -> windows_foundation_numerics.Vector3: ...
|
|
334
|
+
@_property
|
|
335
|
+
def up_direction(self) -> windows_foundation_numerics.Vector3: ...
|
|
336
|
+
@_property
|
|
337
|
+
def orientation(self) -> windows_foundation_numerics.Quaternion: ...
|
|
338
|
+
@_property
|
|
339
|
+
def position_accuracy(self) -> SpatialInteractionSourcePositionAccuracy: ...
|
|
340
|
+
|
|
341
|
+
@typing.final
|
|
342
|
+
class SpatialPointerPose_Static(type):
|
|
343
|
+
def try_get_at_timestamp(cls, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], timestamp: typing.Optional[windows_perception.PerceptionTimestamp], /) -> typing.Optional[SpatialPointerPose]: ...
|
|
344
|
+
|
|
345
|
+
@typing.final
|
|
346
|
+
class SpatialPointerPose(winrt.system.Object, metaclass=SpatialPointerPose_Static):
|
|
347
|
+
@staticmethod
|
|
348
|
+
def _from(obj: winrt.system.Object, /) -> SpatialPointerPose: ...
|
|
349
|
+
def try_get_interaction_source_pose(self, source: typing.Optional[SpatialInteractionSource], /) -> typing.Optional[SpatialPointerInteractionSourcePose]: ...
|
|
350
|
+
@_property
|
|
351
|
+
def head(self) -> typing.Optional[windows_perception_people.HeadPose]: ...
|
|
352
|
+
@_property
|
|
353
|
+
def timestamp(self) -> typing.Optional[windows_perception.PerceptionTimestamp]: ...
|
|
354
|
+
@_property
|
|
355
|
+
def eyes(self) -> typing.Optional[windows_perception_people.EyesPose]: ...
|
|
356
|
+
@_property
|
|
357
|
+
def is_head_captured_by_system(self) -> bool: ...
|
|
358
|
+
|
|
359
|
+
@typing.final
|
|
360
|
+
class SpatialRecognitionEndedEventArgs(winrt.system.Object):
|
|
361
|
+
@staticmethod
|
|
362
|
+
def _from(obj: winrt.system.Object, /) -> SpatialRecognitionEndedEventArgs: ...
|
|
363
|
+
@_property
|
|
364
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
365
|
+
|
|
366
|
+
@typing.final
|
|
367
|
+
class SpatialRecognitionStartedEventArgs(winrt.system.Object):
|
|
368
|
+
@staticmethod
|
|
369
|
+
def _from(obj: winrt.system.Object, /) -> SpatialRecognitionStartedEventArgs: ...
|
|
370
|
+
def is_gesture_possible(self, gesture: SpatialGestureSettings, /) -> bool: ...
|
|
371
|
+
def try_get_pointer_pose(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialPointerPose]: ...
|
|
372
|
+
@_property
|
|
373
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
374
|
+
|
|
375
|
+
@typing.final
|
|
376
|
+
class SpatialTappedEventArgs(winrt.system.Object):
|
|
377
|
+
@staticmethod
|
|
378
|
+
def _from(obj: winrt.system.Object, /) -> SpatialTappedEventArgs: ...
|
|
379
|
+
def try_get_pointer_pose(self, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialPointerPose]: ...
|
|
380
|
+
@_property
|
|
381
|
+
def interaction_source_kind(self) -> SpatialInteractionSourceKind: ...
|
|
382
|
+
@_property
|
|
383
|
+
def tap_count(self) -> winrt.system.UInt32: ...
|
|
384
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt import _winrt_windows_ui_input_spatial
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"SpatialGestureSettings",
|
|
10
|
+
"SpatialInteractionPressKind",
|
|
11
|
+
"SpatialInteractionSourceHandedness",
|
|
12
|
+
"SpatialInteractionSourceKind",
|
|
13
|
+
"SpatialInteractionSourcePositionAccuracy",
|
|
14
|
+
"SpatialGestureRecognizer",
|
|
15
|
+
"SpatialHoldCanceledEventArgs",
|
|
16
|
+
"SpatialHoldCompletedEventArgs",
|
|
17
|
+
"SpatialHoldStartedEventArgs",
|
|
18
|
+
"SpatialInteraction",
|
|
19
|
+
"SpatialInteractionController",
|
|
20
|
+
"SpatialInteractionControllerProperties",
|
|
21
|
+
"SpatialInteractionDetectedEventArgs",
|
|
22
|
+
"SpatialInteractionManager",
|
|
23
|
+
"SpatialInteractionSource",
|
|
24
|
+
"SpatialInteractionSourceEventArgs",
|
|
25
|
+
"SpatialInteractionSourceLocation",
|
|
26
|
+
"SpatialInteractionSourceProperties",
|
|
27
|
+
"SpatialInteractionSourceState",
|
|
28
|
+
"SpatialManipulationCanceledEventArgs",
|
|
29
|
+
"SpatialManipulationCompletedEventArgs",
|
|
30
|
+
"SpatialManipulationDelta",
|
|
31
|
+
"SpatialManipulationStartedEventArgs",
|
|
32
|
+
"SpatialManipulationUpdatedEventArgs",
|
|
33
|
+
"SpatialNavigationCanceledEventArgs",
|
|
34
|
+
"SpatialNavigationCompletedEventArgs",
|
|
35
|
+
"SpatialNavigationStartedEventArgs",
|
|
36
|
+
"SpatialNavigationUpdatedEventArgs",
|
|
37
|
+
"SpatialPointerInteractionSourcePose",
|
|
38
|
+
"SpatialPointerPose",
|
|
39
|
+
"SpatialRecognitionEndedEventArgs",
|
|
40
|
+
"SpatialRecognitionStartedEventArgs",
|
|
41
|
+
"SpatialTappedEventArgs",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
class SpatialGestureSettings(enum.IntFlag):
|
|
45
|
+
NONE = 0x0
|
|
46
|
+
TAP = 0x1
|
|
47
|
+
DOUBLE_TAP = 0x2
|
|
48
|
+
HOLD = 0x4
|
|
49
|
+
MANIPULATION_TRANSLATE = 0x8
|
|
50
|
+
NAVIGATION_X = 0x10
|
|
51
|
+
NAVIGATION_Y = 0x20
|
|
52
|
+
NAVIGATION_Z = 0x40
|
|
53
|
+
NAVIGATION_RAILS_X = 0x80
|
|
54
|
+
NAVIGATION_RAILS_Y = 0x100
|
|
55
|
+
NAVIGATION_RAILS_Z = 0x200
|
|
56
|
+
|
|
57
|
+
class SpatialInteractionPressKind(enum.IntEnum):
|
|
58
|
+
NONE = 0
|
|
59
|
+
SELECT = 1
|
|
60
|
+
MENU = 2
|
|
61
|
+
GRASP = 3
|
|
62
|
+
TOUCHPAD = 4
|
|
63
|
+
THUMBSTICK = 5
|
|
64
|
+
|
|
65
|
+
class SpatialInteractionSourceHandedness(enum.IntEnum):
|
|
66
|
+
UNSPECIFIED = 0
|
|
67
|
+
LEFT = 1
|
|
68
|
+
RIGHT = 2
|
|
69
|
+
|
|
70
|
+
class SpatialInteractionSourceKind(enum.IntEnum):
|
|
71
|
+
OTHER = 0
|
|
72
|
+
HAND = 1
|
|
73
|
+
VOICE = 2
|
|
74
|
+
CONTROLLER = 3
|
|
75
|
+
|
|
76
|
+
class SpatialInteractionSourcePositionAccuracy(enum.IntEnum):
|
|
77
|
+
HIGH = 0
|
|
78
|
+
APPROXIMATE = 1
|
|
79
|
+
|
|
80
|
+
SpatialGestureRecognizer = _winrt_windows_ui_input_spatial.SpatialGestureRecognizer
|
|
81
|
+
SpatialHoldCanceledEventArgs = _winrt_windows_ui_input_spatial.SpatialHoldCanceledEventArgs
|
|
82
|
+
SpatialHoldCompletedEventArgs = _winrt_windows_ui_input_spatial.SpatialHoldCompletedEventArgs
|
|
83
|
+
SpatialHoldStartedEventArgs = _winrt_windows_ui_input_spatial.SpatialHoldStartedEventArgs
|
|
84
|
+
SpatialInteraction = _winrt_windows_ui_input_spatial.SpatialInteraction
|
|
85
|
+
SpatialInteractionController = _winrt_windows_ui_input_spatial.SpatialInteractionController
|
|
86
|
+
SpatialInteractionControllerProperties = _winrt_windows_ui_input_spatial.SpatialInteractionControllerProperties
|
|
87
|
+
SpatialInteractionDetectedEventArgs = _winrt_windows_ui_input_spatial.SpatialInteractionDetectedEventArgs
|
|
88
|
+
SpatialInteractionManager = _winrt_windows_ui_input_spatial.SpatialInteractionManager
|
|
89
|
+
SpatialInteractionSource = _winrt_windows_ui_input_spatial.SpatialInteractionSource
|
|
90
|
+
SpatialInteractionSourceEventArgs = _winrt_windows_ui_input_spatial.SpatialInteractionSourceEventArgs
|
|
91
|
+
SpatialInteractionSourceLocation = _winrt_windows_ui_input_spatial.SpatialInteractionSourceLocation
|
|
92
|
+
SpatialInteractionSourceProperties = _winrt_windows_ui_input_spatial.SpatialInteractionSourceProperties
|
|
93
|
+
SpatialInteractionSourceState = _winrt_windows_ui_input_spatial.SpatialInteractionSourceState
|
|
94
|
+
SpatialManipulationCanceledEventArgs = _winrt_windows_ui_input_spatial.SpatialManipulationCanceledEventArgs
|
|
95
|
+
SpatialManipulationCompletedEventArgs = _winrt_windows_ui_input_spatial.SpatialManipulationCompletedEventArgs
|
|
96
|
+
SpatialManipulationDelta = _winrt_windows_ui_input_spatial.SpatialManipulationDelta
|
|
97
|
+
SpatialManipulationStartedEventArgs = _winrt_windows_ui_input_spatial.SpatialManipulationStartedEventArgs
|
|
98
|
+
SpatialManipulationUpdatedEventArgs = _winrt_windows_ui_input_spatial.SpatialManipulationUpdatedEventArgs
|
|
99
|
+
SpatialNavigationCanceledEventArgs = _winrt_windows_ui_input_spatial.SpatialNavigationCanceledEventArgs
|
|
100
|
+
SpatialNavigationCompletedEventArgs = _winrt_windows_ui_input_spatial.SpatialNavigationCompletedEventArgs
|
|
101
|
+
SpatialNavigationStartedEventArgs = _winrt_windows_ui_input_spatial.SpatialNavigationStartedEventArgs
|
|
102
|
+
SpatialNavigationUpdatedEventArgs = _winrt_windows_ui_input_spatial.SpatialNavigationUpdatedEventArgs
|
|
103
|
+
SpatialPointerInteractionSourcePose = _winrt_windows_ui_input_spatial.SpatialPointerInteractionSourcePose
|
|
104
|
+
SpatialPointerPose = _winrt_windows_ui_input_spatial.SpatialPointerPose
|
|
105
|
+
SpatialRecognitionEndedEventArgs = _winrt_windows_ui_input_spatial.SpatialRecognitionEndedEventArgs
|
|
106
|
+
SpatialRecognitionStartedEventArgs = _winrt_windows_ui_input_spatial.SpatialRecognitionStartedEventArgs
|
|
107
|
+
SpatialTappedEventArgs = _winrt_windows_ui_input_spatial.SpatialTappedEventArgs
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.UI.Input.Spatial
|
|
3
|
+
Version: 2.2.0
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime ==2.2.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Haptics[all] ==2.2.0 ; extra == 'all'
|
|
18
|
+
Requires-Dist: winrt-Windows.Devices.Power[all] ==2.2.0 ; extra == 'all'
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
|
|
20
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
|
|
21
|
+
Requires-Dist: winrt-Windows.Foundation.Numerics[all] ==2.2.0 ; extra == 'all'
|
|
22
|
+
Requires-Dist: winrt-Windows.Perception[all] ==2.2.0 ; extra == 'all'
|
|
23
|
+
Requires-Dist: winrt-Windows.Perception.People[all] ==2.2.0 ; extra == 'all'
|
|
24
|
+
Requires-Dist: winrt-Windows.Perception.Spatial[all] ==2.2.0 ; extra == 'all'
|
|
25
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
|
|
26
|
+
|
|
27
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
28
|
+
|
|
29
|
+
# winrt-Windows.UI.Input.Spatial
|
|
30
|
+
|
|
31
|
+
Windows Runtime (WinRT) APIs for for the `Windows.UI.Input.Spatial` namespace.
|
|
32
|
+
|
|
33
|
+
This package provides the `winrt.windows.ui.input.spatial` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_ui_input_spatial.cp313-win_arm64.pyd,sha256=_7Xbq50jNLezJq871xNcShf1o5T3HiUCdiCP_GNdN9w,357888
|
|
2
|
+
winrt/_winrt_windows_ui_input_spatial.pyi,sha256=zqSXHZMEW2Yjy-Bdj6NJWAVBJuVx9mIWGqJWlwl-bE8,22149
|
|
3
|
+
winrt/windows/ui/input/spatial/__init__.py,sha256=HkB7JOUyMLt4HQRRkNOPd20p2lg91slXteA0-i8dkTg,4903
|
|
4
|
+
winrt/windows/ui/input/spatial/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_Windows.UI.Input.Spatial-2.2.0.dist-info/METADATA,sha256=NC48228Vvc40TLSseZZVikkoZP3qMFxDmiYfcriNLKc,1664
|
|
6
|
+
winrt_Windows.UI.Input.Spatial-2.2.0.dist-info/WHEEL,sha256=Bc3zGnBzvnkuBaMd-KCqScACPFmA-93PSEDjeXqCzu8,101
|
|
7
|
+
winrt_Windows.UI.Input.Spatial-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_Windows.UI.Input.Spatial-2.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|