Files
dolphin/Source/Android/jni/HotkeyScheduler.h
visarhoxha f0ef800161 Android: Avoid constant hotkey polling to save battery
Only poll for hotkeys while EmulationActivity is resumed and at least
one supported hotkey is mapped. Otherwise the scheduler thread waits on
an event instead of polling.
2026-10-19 12:22:32 +02:00

18 lines
288 B
C++

// Copyright 2026 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <vector>
namespace HotkeyScheduler
{
void Start();
void Stop();
void RefreshActiveHotkeys();
const std::vector<int>& GetSupportedHotkeys();
} // namespace HotkeyScheduler