summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_joystick/ftnoir_tracker_joystick_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_tracker_joystick/ftnoir_tracker_joystick_dialog.cpp')
-rw-r--r--ftnoir_tracker_joystick/ftnoir_tracker_joystick_dialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ftnoir_tracker_joystick/ftnoir_tracker_joystick_dialog.cpp b/ftnoir_tracker_joystick/ftnoir_tracker_joystick_dialog.cpp
index 7200003c..88074fef 100644
--- a/ftnoir_tracker_joystick/ftnoir_tracker_joystick_dialog.cpp
+++ b/ftnoir_tracker_joystick/ftnoir_tracker_joystick_dialog.cpp
@@ -6,7 +6,8 @@ static BOOL CALLBACK EnumJoysticksCallback( const DIDEVICEINSTANCE* pdidInstance
auto self = ( TrackerControls* )pContext;
self->guids.push_back(pdidInstance->guidInstance);
- self->ui.joylist->addItem(QString(pdidInstance->tszInstanceName));
+ self->ui.joylist->addItem(QString(pdidInstance->tszInstanceName),
+ guid_to_string(pdidInstance->guidInstance));
return DIENUM_CONTINUE;
}
@@ -49,6 +50,7 @@ fin:
}
void TrackerControls::doOK() {
+ s.guid = ui.joylist->currentData().toString();
s.b->save();
if (tracker)
tracker->reload();