summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-24 21:16:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-24 21:16:06 +0200
commita19d4fc2ec4ef759cae00505038c02c684c4106b (patch)
tree2f9d64008624ee708539b2080c8509193eb678f2 /ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
parent032ab045327e7c442732938818e5ca4bce217406 (diff)
finish joystick impl
Diffstat (limited to 'ftnoir_tracker_joystick/ftnoir_tracker_joystick.h')
-rw-r--r--ftnoir_tracker_joystick/ftnoir_tracker_joystick.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
index c1157cba..0d27a752 100644
--- a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
+++ b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
@@ -26,8 +26,7 @@
struct DI_ENUM_CONTEXT
{
- DIJOYCONFIG* pPreferredJoyCfg;
- bool bPreferredJoyCfgValid;
+ DIDEVICEINSTANCE* pPreferredJoyCfg;
GUID preferred_instance;
LPDIRECTINPUTDEVICE8* g_pJoystick;
LPDIRECTINPUT8 g_pDI;
@@ -39,7 +38,7 @@ public:
FTNoIR_Tracker();
~FTNoIR_Tracker();
- void StartTracker(QFrame *win);
+ void StartTracker(QFrame *frame);
bool GiveHeadPoseData(double *data);
void loadSettings();
LPDIRECTINPUT8 g_pDI;
@@ -49,7 +48,9 @@ public:
int joyid;
QMutex mtx;
QFrame* frame;
+ DIDEVICEINSTANCE def;
void reload();
+ int iter; // XXX bad style
};
// Widget that has controls for FTNoIR protocol client-settings.