mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-02-04 20:15:41 +00:00
fix(windows): resolve disappearing cursor after KVM switch (#4407)
This commit is contained in:
@ -1133,7 +1133,10 @@ namespace platf {
|
||||
}
|
||||
}
|
||||
}
|
||||
enable_mouse_keys();
|
||||
}
|
||||
|
||||
void enable_mouse_keys() {
|
||||
// If there is no mouse connected, enable Mouse Keys to force the cursor to appear
|
||||
if (!GetSystemMetrics(SM_MOUSEPRESENT)) {
|
||||
BOOST_LOG(info) << "A mouse was not detected. Sunshine will enable Mouse Keys while streaming to force the mouse cursor to appear.";
|
||||
|
||||
Reference in New Issue
Block a user