diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-03 21:17:14 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-01-03 21:17:14 +0100 |
commit | fcbce27643f7017af6e9fc5affa39fc5e40643d7 (patch) | |
tree | 818996455645d9dd37ef4fd5e31a3ad3c13e032d /ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp | |
parent | 56bdd3ba1dcfb2153e31e8479c7268ddcb620ddd (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.cpp | 2 |
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() : |