summaryrefslogtreecommitdiffstats
path: root/chicken-wranglers/examples/control/testcontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'chicken-wranglers/examples/control/testcontrol.h')
-rw-r--r--chicken-wranglers/examples/control/testcontrol.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/chicken-wranglers/examples/control/testcontrol.h b/chicken-wranglers/examples/control/testcontrol.h
new file mode 100644
index 0000000..041abb9
--- /dev/null
+++ b/chicken-wranglers/examples/control/testcontrol.h
@@ -0,0 +1,23 @@
+#ifndef TESTCONTROL_H
+#define TESTCONTROL_H
+
+#include "global.h"
+
+#include <QDebug>
+#include <QObject>
+
+class TestControl : public QObject
+{
+ Q_OBJECT
+
+public:
+ TestControl(QObject *parent = 0) : QObject(parent) {}
+
+public slots:
+ void onDirectionChanged(Global::Direction direction)
+ {
+ qDebug() << "Direction changed:" << Global::directionString(direction);
+ }
+};
+
+#endif