diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2010-06-14 20:22:04 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2010-06-14 20:22:04 +0000 |
commit | fd9e934a2b3f5857b63ec56953980e1eb68d1e9b (patch) | |
tree | 5639398411c5e47a90b90a9dee8ced94dacbe102 /FaceTrackNoIR/PPJoyServer.h | |
parent | c6bf844769902c2eda1cb0789dd5872fe9d962ac (diff) |
PPJoy settings dialog complete
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@13 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/PPJoyServer.h')
-rw-r--r-- | FaceTrackNoIR/PPJoyServer.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 );
};
|