From fd9e934a2b3f5857b63ec56953980e1eb68d1e9b Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Mon, 14 Jun 2010 20:22:04 +0000 Subject: PPJoy settings dialog complete git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@13 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/PPJoyServer.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'FaceTrackNoIR/PPJoyServer.h') diff --git a/FaceTrackNoIR/PPJoyServer.h b/FaceTrackNoIR/PPJoyServer.h index 72d17bd1..165a82f5 100644 --- a/FaceTrackNoIR/PPJoyServer.h +++ b/FaceTrackNoIR/PPJoyServer.h @@ -88,6 +88,7 @@ private: DWORD rc; long *Analog; char *Digital; + int selectedPPJoy; // Number of virtual joystick (1..16) // static long analogDefault,PPJoyCorrection; long centerPos[3],centerRot[3]; @@ -103,6 +104,7 @@ private: void checkAnalogLimits(); long scale2AnalogLimits( float x, float min_x, float max_x ); + void loadSettings(); public: void setVirtRotX(float rot) { virtRotX = rot; } @@ -122,13 +124,20 @@ public: explicit PPJoyControls( QWidget *parent=0, Qt::WindowFlags f=0 ); virtual ~PPJoyControls(); + void showEvent ( QShowEvent * event ); private: Ui::UICPPJoyControls ui; + void loadSettings(); + void save(); + + /** helper **/ + bool settingsDirty; private slots: void doOK(); void doCancel(); + void virtualJoystickSelected( int index ); }; -- cgit v1.2.3