Split keyboard and mouse policy handling
This commit is contained in:
parent
d174341b6d
commit
87f4e90ca2
7 changed files with 75 additions and 43 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue