summaryrefslogtreecommitdiffhomepage
path: root/tracker-hydra/ftnoir_tracker_hydra.h
blob: 8af4434481d6da0129ae6b429950602fc78bbf42 (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
47
48
49
50
#pragma once

#include "ui_ftnoir_hydra_clientcontrols.h"
#include "api/plugin-api.hpp"
#include "options/options.hpp"
using namespace options;

struct settings : opts
{
    settings() :
        opts("tracker-hydra")
    {}
};

class Hydra_Tracker : public ITracker
{
public:
    Hydra_Tracker();
    ~Hydra_Tracker() override;
    module_status start_tracker(QFrame *) override;
    void data(double *data) override;

private:
    settings s;
    QMutex mutex;
};

class dialog_hydra: public ITrackerDialog
{
    Q_OBJECT
public:
    dialog_hydra();
    void register_tracker(ITracker *) override {}
    void unregister_tracker() override {}
private:
    settings s;
    Ui::UIHydraControls ui;
private slots:
    void doOK();
    void doCancel();
};

class hydraDll : public Metadata
{
    Q_OBJECT

    QString name() override { return QString("Razer Hydra -- inertial device"); }
    QIcon icon() override { return QIcon(":/images/opentrack.png"); }
};