mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-12-06 20:53:40 +01:00
android: add global hotkeys
This commit is contained in:
1 parent
c185d27ede
commit
98c229ef79
11 files changed
+412
-1
No files matched your search
@@ -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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user