CommonHostInterface: Add public method to activate autofire

This commit is contained in:
Connor McLaughlin
2021-05-24 21:17:45 +10:00
parent a67f77d2a1
commit 8f23a79d36
2 changed files with 31 additions and 1 deletions

View File

@ -311,6 +311,9 @@ public:
/// Controller navigation, used by fullscreen mode.
void SetControllerNavigationButtonState(FrontendCommon::ControllerNavigationButton button, bool pressed);
/// Alters autofire state for controllers (activates/deactivates).
void SetControllerAutoFireSlotState(u32 controller_index, u32 slot_index, bool active);
/// Toggles fast forward state.
bool IsFastForwardEnabled() const { return m_fast_forward_enabled; }
void SetFastForwardEnabled(bool enabled);
@ -535,6 +538,7 @@ private:
struct ControllerAutoFireState
{
u32 controller_index;
u32 slot_index;
s32 button_code;
u8 frequency;
u8 countdown;