Split keyboard and mouse policy handling
Some checks are pending
Build / setup (push) Waiting to run
Build / build-appimage (push) Blocked by required conditions
Build / build-steamlink (push) Blocked by required conditions
Build / build-windows-macos (push) Blocked by required conditions

This commit is contained in:
Joey Yakimowich-Payne 2026-02-12 09:11:40 -07:00
commit 87f4e90ca2
7 changed files with 75 additions and 43 deletions

View file

@ -131,9 +131,19 @@ public:
return m_AllowGamepadInput.load(std::memory_order_relaxed);
}
bool isKeyboardInputAllowed() const
{
return m_AllowKeyboardInput.load(std::memory_order_relaxed);
}
bool isMouseInputAllowed() const
{
return m_AllowMouseInput.load(std::memory_order_relaxed);
}
bool isKeyboardMouseInputAllowed() const
{
return m_AllowKeyboardMouseInput.load(std::memory_order_relaxed);
return isKeyboardInputAllowed() && isMouseInputAllowed();
}
void setGamepadInputAllowed(bool allowed);
@ -298,7 +308,8 @@ private:
std::atomic<bool> m_ManualAudioMuted;
std::atomic<float> m_AudioVolumeScalar;
std::atomic<bool> m_AllowGamepadInput;
std::atomic<bool> m_AllowKeyboardMouseInput;
std::atomic<bool> m_AllowKeyboardInput;
std::atomic<bool> m_AllowMouseInput;
std::atomic<bool> m_ControlPanelVisible;
std::atomic<int> m_ConnectionStatus;
std::atomic<uint32_t> m_StatusOverlayGeneration;