There was an error while loading. Please reload this page.
1 parent 75c1f2c commit 25b3f1bCopy full SHA for 25b3f1b
1 file changed
src/main.cpp
@@ -519,9 +519,9 @@ class Trackers {
519
520
// only write values once, to avoid overwriting good values later.
521
if (info->name == "") {
522
- auto controller_type = this->GetStringProp(index, ETrackedDeviceProperty::Prop_ControllerType_String);
523
- if (controller_type.has_value()) {
524
- info->name = controller_type.value();
+ auto model_number = this->GetStringProp(index, ETrackedDeviceProperty::Prop_ModelNumber_String);
+ if (model_number.has_value()) {
+ info->name = model_number.value();
525
} else {
526
// uhhhhhhhhhhhhhhh
527
info->name = fmt::format("Index{}", index);
0 commit comments