Add runtime input toggles and gated input sending
This commit is contained in:
parent
f426032b1b
commit
f78a63ab75
9 changed files with 312 additions and 68 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <QSemaphore>
|
||||
#include <QQuickWindow>
|
||||
#include <atomic>
|
||||
|
||||
#include <Limelight.h>
|
||||
#include <opus_multistream.h>
|
||||
|
|
@ -125,6 +126,22 @@ public:
|
|||
|
||||
void setShouldExit(bool quitHostApp = false);
|
||||
|
||||
bool isGamepadInputAllowed() const
|
||||
{
|
||||
return m_AllowGamepadInput.load(std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
bool isKeyboardMouseInputAllowed() const
|
||||
{
|
||||
return m_AllowKeyboardMouseInput.load(std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
void setGamepadInputAllowed(bool allowed);
|
||||
void setKeyboardMouseInputAllowed(bool allowed);
|
||||
void toggleGamepadInputAllowed();
|
||||
void toggleKeyboardMouseInputAllowed();
|
||||
void notifyInputPermissionState();
|
||||
|
||||
signals:
|
||||
void stageStarting(QString stage);
|
||||
|
||||
|
|
@ -255,6 +272,8 @@ private:
|
|||
SDL_mutex* m_DecoderLock;
|
||||
bool m_AudioDisabled;
|
||||
bool m_AudioMuted;
|
||||
std::atomic<bool> m_AllowGamepadInput;
|
||||
std::atomic<bool> m_AllowKeyboardMouseInput;
|
||||
Uint32 m_FullScreenFlag;
|
||||
QQuickWindow* m_QtWindow;
|
||||
bool m_UnexpectedTermination;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue