blob: 94396b7c58226b4cd621b62c2e4334f35710de1d (
plain)
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
|
#include "ui_ftnoir_hydra_clientcontrols.h"
#include "opentrack/plugin-api.hpp"
#include "opentrack-compat/options.hpp"
using namespace options;
struct settings : opts {
settings() :
opts("tracker-hydra")
{}
};
class Hydra_Tracker : public ITracker
{
public:
Hydra_Tracker();
~Hydra_Tracker();
void start_tracker(QFrame *) override;
void data(double *data) override;
volatile bool should_quit;
private:
settings s;
QMutex mutex;
};
class TrackerControls: public ITrackerDialog
{
Q_OBJECT
public:
TrackerControls();
void register_tracker(ITracker *) {}
void unregister_tracker() {}
private:
settings s;
Ui::UIHydraControls ui;
private slots:
void doOK();
void doCancel();
};
class FTNoIR_TrackerDll : public Metadata
{
public:
QString name() { return QString("Razer Hydra -- inertial device"); }
QIcon icon() { return QIcon(":/images/facetracknoir.png"); }
};
|