GlosSITarget: Allow changing "Use desktop-config" from GlosSI Overlay (if game was launched, makes no sense otherwise)

pull/183/head
Peter Repukat 2 years ago
parent 0c9c30bfb1
commit 14f87f19e2

@ -70,9 +70,21 @@ void InputRedirector::run()
controller_settings_changed_ = true;
}
ImGui::Spacing();
if (Settings::launch.launch) {
ImGui::Checkbox("Allow desktop config", &Settings::controller.allowDesktopConfig);
ImGui::Text("Allows desktop config if the launched application is not focused");
ImGui::Spacing();
}
bool enable_rumbe_copy = enable_rumble_;
ImGui::Checkbox("Enable Rumble", &enable_rumbe_copy);
enable_rumble_ = enable_rumbe_copy;
ImGui::Spacing();
if (ImGui::CollapsingHeader("Advanced", ImGuiTreeNodeFlags_DefaultOpen)) {
ImGui::Text("GlosSI uses different USB-IDs for it's emulated controllers");
ImGui::Text("This can cause issues with some games");
@ -169,14 +181,17 @@ void InputRedirector::runLoop()
// vigem_target_set_pid(vt_pad_[i], 0x11FF); //VALVE_DIRECTINPUT_GAMEPAD_PID
if (Settings::controller.emulateDS4) {
vigem_target_set_pid(vt_pad_[i], 0x05C4); // DS4 Controller
} else {
}
else {
vigem_target_set_pid(vt_pad_[i], 0x028E); // XBOX 360 Controller
}
} else {
}
else {
if (Settings::controller.emulateDS4) {
vigem_target_set_vid(vt_pad_[i], 0x054C); // Sony Corp.
vigem_target_set_pid(vt_pad_[i], 0x05C4); // DS4 Controller
} else {
}
else {
vigem_target_set_vid(vt_pad_[i], 0x045E); // MICROSOFT
vigem_target_set_pid(vt_pad_[i], 0x028E); // XBOX 360 Controller
}

Loading…
Cancel
Save