mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-21 06:03:52 +00:00
Detect SAS (Secure Attention Sequence) in a way that does not prevent screen sleep
This commit is contained in:
parent
2db4dcf5ae
commit
fec7e87c21
7 changed files with 26 additions and 39 deletions
|
|
@ -28,17 +28,18 @@ namespace SteamController.Profiles
|
|||
return Status.Done;
|
||||
}
|
||||
|
||||
if (!c.Mouse.Valid)
|
||||
if (!c.KeyboardMouseValid)
|
||||
{
|
||||
// Failed to acquire secure context
|
||||
// Enable emergency Lizard
|
||||
c.Steam.LizardButtons = true;
|
||||
c.Steam.LizardMouse = true;
|
||||
return Status.Done;
|
||||
}
|
||||
|
||||
c.Steam.LizardButtons = SteamModeLizardButtons;
|
||||
c.Steam.LizardMouse = SteamModeLizardMouse;
|
||||
else
|
||||
{
|
||||
c.Steam.LizardButtons = SteamModeLizardButtons;
|
||||
c.Steam.LizardMouse = SteamModeLizardMouse;
|
||||
}
|
||||
|
||||
EmulateScrollOnLPad(c);
|
||||
EmulateScrollOnLStick(c);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace SteamController.Profiles
|
|||
{
|
||||
public override bool Selected(Context context)
|
||||
{
|
||||
return context.Enabled && context.X360.Valid && context.Mouse.Valid && !context.State.SteamUsesSteamInput;
|
||||
return context.Enabled && context.X360.Valid && context.KeyboardMouseValid && !context.State.SteamUsesSteamInput;
|
||||
}
|
||||
|
||||
internal override ProfilesSettings.BackPanelSettings BackPanelSettings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue