android: add global hotkeys

This commit is contained in:
visarhoxha committed 2026-09-18 20:29:36 +02:00
1 parent c185d27ede
commit 98c229ef79
11 files changed
+412 -1

No files matched your search

+5
View File
@@ -66,6 +66,7 @@
#include "jni/AndroidCommon/AndroidCommon.h"
#include "jni/AndroidCommon/IDCache.h"
#include "jni/HotkeyScheduler.h"
namespace
{
@@ -578,12 +579,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());