Merge pull request #14878 from vhoxha08/add-global-hotkeys-android

Android: Add global hotkeys
This commit is contained in:
JosJuice authored and GitHub committed 2026-10-31 16:17:25 +01:00
commit c4856ead64
16 files changed
+536 -19

No files matched your search

+5
View File
@@ -67,6 +67,7 @@
#include "jni/AndroidCommon/AndroidCommon.h"
#include "jni/AndroidCommon/IDCache.h"
#include "jni/HotkeyScheduler.h"
namespace
{
@@ -584,12 +585,16 @@ static void Run(JNIEnv* env, std::unique_ptr<BootParameters>&& boot, bool riivol
s_need_nonblocking_alert_msg = false;
surface_guard.unlock();
HotkeyScheduler::Start();
while (Core::IsRunning(Core::System::GetInstance()))
{
s_update_main_frame_event.Wait();
Core::HostDispatchJobs(Core::System::GetInstance());
}
HotkeyScheduler::Stop();
s_game_metadata_is_valid = false;
Core::Shutdown(Core::System::GetInstance());