Add toggle for system key capture

This commit is contained in:
Cameron Gutman committed 2021-01-12 20:05:18 -06:00
1 parent 8e790c4745
commit 76b4922bbe
5 files changed
+31 -1

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@
#include "streaming/session.h"
#include "settings/mappingmanager.h"
#include "path.h"
#include "utils.h"
#include <QtGlobal>
#include <QDir>
@@ -24,7 +25,7 @@ SdlInputHandler::SdlInputHandler(StreamingPreferences& prefs, NvComputer*, int s
m_MouseWasInVideoRegion(false),
m_PendingMouseButtonsAllUpOnVideoRegionLeave(false),
m_FakeCaptureActive(false),
m_CaptureSystemKeysEnabled(false),
m_CaptureSystemKeysEnabled(prefs.captureSysKeys || !WMUtils::isRunningWindowManager()),
m_LongPressTimer(0),
m_StreamWidth(streamWidth),
m_StreamHeight(streamHeight),