-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIvryCustomTrackingApp.h
57 lines (46 loc) · 1.77 KB
/
IvryCustomTrackingApp.h
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
/*************************************************************************
*
* Copyright (C) 2016-2020 Mediator Software and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Mediator Software ([email protected])
*
* NOTICE: All information contained herein is, and remains the property of
* Mediator Software and its suppliers, if any.
* The intellectual and technical concepts contained herein are proprietary
* to Mediator Software and its suppliers and may be covered by U.S. and
* Foreign Patents, patents in process, and are protected by trade secret or
* copyright law. Dissemination of this information or reproduction of this
* material is strictly forbidden unless prior written permission is obtained
* from Mediator Software.
*
* If you have questions regarding the use of this file, please contact
* Mediator Software ([email protected]).
*
***************************************************************************/
#ifndef _IVRY_CUSTOM_TRACKING_APP_H
#define _IVRY_CUSTOM_TRACKING_APP_H
#include "IvryTrackingApp.h"
class IvryCustomTrackingApp : public IvryTrackingApp
{
public:
/** Constructor/destructor **/
IvryCustomTrackingApp();
~IvryCustomTrackingApp();
/** Run tracker **/
virtual DWORD Run();
protected:
/** Pose has been recevied from driver **/
virtual void OnDevicePoseUpdated(const vr::DriverPose_t &pose);
/** Device orientation has been enabled/disabled by user **/
virtual void OnDeviceOrientationEnabled(bool enable);
/** Driver is requesting tracking process quit **/
virtual void OnQuit();
private:
/** Used to signal process must quit **/
HANDLE m_hQuitEvent;
/** Simulated position **/
double m_afPosition[3];
/** Use device orientation tracking? **/
bool m_bUseDeviceOrientation;
};
#endif // _IVRY_CUSTOM_TRACKING_APP_H