-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathControllerDevice.h
More file actions
36 lines (28 loc) · 898 Bytes
/
Copy pathControllerDevice.h
File metadata and controls
36 lines (28 loc) · 898 Bytes
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
#include <osvr/PluginKit/PluginKit.h>
#include "LeapC.h"
#include "LeapData.h"
#include "Analog.h"
//#include "Imaging.h"
#include "Tracker.h"
//#include "Gestures.h"
#include "Configure.h"
namespace LeapOsvr {
class ControllerDevice {
public:
ControllerDevice(OSVR_PluginRegContext pContext, LEAP_CONNECTION connection, LeapConfig config);
~ControllerDevice();
OSVR_ReturnCode operator()(OSVR_PluginRegContext pContext);
OSVR_ReturnCode update();
private:
LeapConfig mConfigOptions;
const LEAP_CONNECTION mConnection;
LeapData* mLeapData;
Analog* mAnalog;
//Imaging* mImaging; // not currently working, also needs migration to C API
Tracker* mTracker;
//Gestures* mGestures; // deprecated in 3.0.0 SDK
Configure* mConfigure;
osvr::pluginkit::DeviceToken mDeviceToken;
void initDevice(OSVR_PluginRegContext pContext);
};
}