diff options
Diffstat (limited to 'FaceTrackNoIR/PPJoyServer.h')
-rw-r--r-- | FaceTrackNoIR/PPJoyServer.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/FaceTrackNoIR/PPJoyServer.h b/FaceTrackNoIR/PPJoyServer.h index 83b3617a..72d17bd1 100644 --- a/FaceTrackNoIR/PPJoyServer.h +++ b/FaceTrackNoIR/PPJoyServer.h @@ -39,6 +39,8 @@ #include <QMutex>
#include <QLibrary>
+#include "ui_FTNoIR_ppjoycontrols.h"
+
using namespace std;
class Tracker; // pre-define parent-class to avoid circular includes
@@ -87,7 +89,7 @@ private: long *Analog;
char *Digital;
- static long analogDefault,PPJoyCorrection;
+// static long analogDefault,PPJoyCorrection;
long centerPos[3],centerRot[3];
/** member variables for saving the head pose **/
@@ -112,6 +114,24 @@ public: };
+// Widget that has controls for PPJoy server-settings.
+class PPJoyControls: public QWidget, public Ui::UICPPJoyControls
+{
+ Q_OBJECT
+public:
+
+ explicit PPJoyControls( QWidget *parent=0, Qt::WindowFlags f=0 );
+ virtual ~PPJoyControls();
+
+private:
+ Ui::UICPPJoyControls ui;
+
+private slots:
+ void doOK();
+ void doCancel();
+
+};
+
#endif//INCLUDED_PPJOYSERVER_H
//END
|