Detect SAS (Secure Attention Sequence) in a way that does not prevent screen sleep

This commit is contained in:
Kamil Trzciński 2022-12-10 10:18:21 +01:00
parent 2db4dcf5ae
commit fec7e87c21
7 changed files with 26 additions and 39 deletions

View file

@ -28,7 +28,8 @@ namespace SteamController
new Managers.SteamManager(),
new Managers.ProfileSwitcher(),
new Managers.SteamConfigsManager(),
new Managers.SharedDataManager()
new Managers.SharedDataManager(),
new Managers.SASManager()
}
};
@ -141,7 +142,7 @@ namespace SteamController
var isDesktop = context.CurrentProfile?.IsDesktop ?? false;
if (!context.Mouse.Valid)
if (!context.KeyboardMouseValid)
{
notifyIcon.Text = TitleWithVersion + ". Cannot send input.";
notifyIcon.Icon = Resources.microsoft_xbox_controller_off_red;