From da9c3080111b0cd31b48696c3c67ac46e4843ee8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 21 Nov 2016 11:09:37 +0100 Subject: tracker/qt-gamepad: add stub --- tracker-qt-gamepad/test.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tracker-qt-gamepad/test.h (limited to 'tracker-qt-gamepad/test.h') diff --git a/tracker-qt-gamepad/test.h b/tracker-qt-gamepad/test.h new file mode 100644 index 00000000..ffa9ac44 --- /dev/null +++ b/tracker-qt-gamepad/test.h @@ -0,0 +1,45 @@ +#pragma once +#include "ui_test.h" +#include "api/plugin-api.hpp" +#include "compat/timer.hpp" + +#include + +class gamepad_tracker : public ITracker +{ +public: + gamepad_tracker(); + ~gamepad_tracker() override; + void start_tracker(QFrame *) override; + void data(double *data) override; + +private: + static constexpr double r2d = 180 / M_PI; + static constexpr double d2r = M_PI / 180; + + static const double incr[6]; + double last_x[6]; + Timer t; +}; + +class gamepad_dialog : public ITrackerDialog +{ + Q_OBJECT + + Ui::test_ui ui; +public: + gamepad_dialog(); + void register_tracker(ITracker *) override {} + void unregister_tracker() override {} +private slots: + void doOK(); + void doCancel(); +}; + +class gamepad_metadata : public Metadata +{ +public: + QString name() { return QString(QCoreApplication::translate("gamepad_metadata", "Gamepad input")); } + QIcon icon() { return QIcon(":/images/facetracknoir.png"); } +}; + -- cgit v1.2.3