|
|
@ -167,6 +167,7 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
|
|
|
|
|
|
|
|
|
|
|
constexpr int default_mouse_hide_timeout = 2500;
|
|
|
|
constexpr int default_mouse_hide_timeout = 2500;
|
|
|
|
constexpr int default_mouse_center_timeout = 10;
|
|
|
|
constexpr int default_mouse_center_timeout = 10;
|
|
|
|
|
|
|
|
constexpr int default_input_update_timeout = 1;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* "Callouts" are one-time instructional messages shown to the user. In the config settings, there
|
|
|
|
* "Callouts" are one-time instructional messages shown to the user. In the config settings, there
|
|
|
@ -404,6 +405,10 @@ GMainWindow::GMainWindow(std::unique_ptr<Config> config_, bool has_broken_vulkan
|
|
|
|
mouse_center_timer.setInterval(default_mouse_center_timeout);
|
|
|
|
mouse_center_timer.setInterval(default_mouse_center_timeout);
|
|
|
|
connect(&mouse_center_timer, &QTimer::timeout, this, &GMainWindow::CenterMouseCursor);
|
|
|
|
connect(&mouse_center_timer, &QTimer::timeout, this, &GMainWindow::CenterMouseCursor);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update_input_timer.setInterval(default_input_update_timeout);
|
|
|
|
|
|
|
|
connect(&update_input_timer, &QTimer::timeout, this, &GMainWindow::UpdateInputDrivers);
|
|
|
|
|
|
|
|
update_input_timer.start();
|
|
|
|
|
|
|
|
|
|
|
|
MigrateConfigFiles();
|
|
|
|
MigrateConfigFiles();
|
|
|
|
|
|
|
|
|
|
|
|
if (has_broken_vulkan) {
|
|
|
|
if (has_broken_vulkan) {
|
|
|
@ -3636,6 +3641,13 @@ void GMainWindow::UpdateUISettings() {
|
|
|
|
UISettings::values.first_start = false;
|
|
|
|
UISettings::values.first_start = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void GMainWindow::UpdateInputDrivers() {
|
|
|
|
|
|
|
|
if (!input_subsystem) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
input_subsystem->PumpEvents();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GMainWindow::HideMouseCursor() {
|
|
|
|
void GMainWindow::HideMouseCursor() {
|
|
|
|
if (emu_thread == nullptr && UISettings::values.hide_mouse) {
|
|
|
|
if (emu_thread == nullptr && UISettings::values.hide_mouse) {
|
|
|
|
mouse_hide_timer.stop();
|
|
|
|
mouse_hide_timer.stop();
|
|
|
|