mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-11-18 09:46:19 -06:00
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.
18 lines
288 B
C++
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
|