summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-03 22:14:24 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-03 22:14:24 +0100
commit156676ade065f5d2634a0117372254ac4fb4629c (patch)
tree283f6e1605b1494ad6a509d631792c82498f51d3 /ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
parentdf195bae5f406dace6fe23586165516ed8b95fc1 (diff)
simplify logic. remove incorrect setting reset
Diffstat (limited to 'ftnoir_tracker_joystick/ftnoir_tracker_joystick.h')
-rw-r--r--ftnoir_tracker_joystick/ftnoir_tracker_joystick.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
index 0c2b3919..06d06186 100644
--- a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
+++ b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.h
@@ -30,13 +30,6 @@
#include "facetracknoir/options.h"
using namespace options;
-struct DI_ENUM_CONTEXT
-{
- GUID preferred_instance;
- LPDIRECTINPUTDEVICE8* g_pJoystick;
- LPDIRECTINPUT8 g_pDI;
-};
-
struct settings {
pbundle b;
value<int> axis_0;
@@ -46,7 +39,6 @@ struct settings {
value<int> axis_4;
value<int> axis_5;
value<QString> joyid;
- value<int>* axes[6];
settings() :
b(bundle("tracker-joystick")),
axis_0(b, "axis-0", 0),
@@ -55,8 +47,7 @@ struct settings {
axis_3(b, "axis-3", 0),
axis_4(b, "axis-4", 0),
axis_5(b, "axis-5", 0),
- joyid(b, "joy-id", ""),
- axes{&axis_0, &axis_1, &axis_2, &axis_3, &axis_4, &axis_5}
+ joyid(b, "joy-id", "")
{}
};