Ignore mouse events outside the video region

This commit is contained in:
Cameron Gutman committed 2020-07-12 15:06:36 -07:00
1 parent 912e51d863
commit ab5025efbf
4 files changed
+71 -5

No files matched your search

+2
View File
@@ -14,6 +14,8 @@ SdlInputHandler::SdlInputHandler(StreamingPreferences& prefs, NvComputer*, int s
m_GamepadMouse(prefs.gamepadMouse),
m_MouseMoveTimer(0),
m_MousePositionLock(0),
m_MouseWasInVideoRegion(false),
m_PendingMouseButtonsAllUpOnVideoRegionLeave(false),
m_FakeCaptureActive(false),
m_LongPressTimer(0),
m_StreamWidth(streamWidth),