diff options
author | german77 <juangerman-13@hotmail.com> | 2022-06-18 23:34:28 -0500 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2022-07-23 19:40:21 -0500 |
commit | cc83e0a6006667d126a7a83dde23a7f8ae3af994 (patch) | |
tree | c4adfe7019e6f54050f8341e929c3db417d491f6 /src/yuzu/main.cpp | |
parent | f19e7be6e84357234c9fdae3395f988a9bb1ac5b (diff) |
yuzu: Hook qt camera to camera driver
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index a120f2662..08ccc1555 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1542,6 +1542,8 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t mouse_hide_timer.start(); } + render_window->InitializeCamera(); + std::string title_name; std::string title_version; const auto res = system->GetGameName(title_name); @@ -1623,6 +1625,7 @@ void GMainWindow::ShutdownGame() { tas_label->clear(); input_subsystem->GetTas()->Stop(); OnTasStateChanged(); + render_window->FinalizeCamera(); // Enable all controllers system->HIDCore().SetSupportedStyleTag({Core::HID::NpadStyleSet::All}); @@ -2862,6 +2865,12 @@ void GMainWindow::OnConfigure() { mouse_hide_timer.start(); } + // Restart camera config + if (emulation_running) { + render_window->FinalizeCamera(); + render_window->InitializeCamera(); + } + if (!UISettings::values.has_broken_vulkan) { renderer_status_button->setEnabled(!emulation_running); } |