-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTrackingHandler.idl
More file actions
55 lines (45 loc) · 1.09 KB
/
TrackingHandler.idl
File metadata and controls
55 lines (45 loc) · 1.09 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
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.
namespace DeviceHandler
{
struct Vector
{
Single X;
Single Y;
Single Z;
};
struct Quaternion
{
Single X;
Single Y;
Single Z;
Single W;
};
struct Joint
{
String Name;
Vector Position;
Quaternion Orientation;
Vector Velocity;
Vector Acceleration;
Vector AngularVelocity;
Vector AngularAcceleration;
};
[default_interface]
runtimeclass TrackingHandler
{
TrackingHandler(); // Default constructor
void Update(); // Prepare stuff for update
Int32 Initialize(); // Initialize handlers
Int32 Shutdown(); // Disconnect, cleanup
Boolean KeepAlive; // Enable ODTKRA tooling
Boolean ReduceRes; // Reduce Rift resolution
Int32 PredictionMs; // Prediction time in ms
Boolean IsInitialized { get; }; // Init { get; }
Int32 StatusResult { get; }; // Status { get; }
// Event handler: log a stringized message
event Windows.Foundation.EventHandler<String> LogEvent;
// Get-only: all tracked joints/devices
Joint[] TrackedJoints { get; };
}
}