summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-03 21:17:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-03 21:17:14 +0100
commitfcbce27643f7017af6e9fc5affa39fc5e40643d7 (patch)
tree818996455645d9dd37ef4fd5e31a3ad3c13e032d /ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp
parent56bdd3ba1dcfb2153e31e8479c7268ddcb620ddd (diff)
Store joystick selection as friendly name, not arbitrary device index
Diffstat (limited to 'ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp')
-rw-r--r--ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp
index 28fc034a..e605ea40 100644
--- a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp
+++ b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp
@@ -10,7 +10,7 @@ static BOOL CALLBACK EnumJoysticksCallback2( const DIDEVICEINSTANCE* pdidInstanc
self->def = *pdidInstance;
- return self->iter++ == self->s.joyid ? DIENUM_STOP : DIENUM_CONTINUE;
+ return QString(pdidInstance->tszInstanceName) == self->s.joyid ? DIENUM_STOP : DIENUM_CONTINUE;
}
FTNoIR_Tracker::FTNoIR_Tracker() :