aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/Program.cs
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-05-02 03:29:47 +0200
committerGitHub <noreply@github.com>2023-05-02 03:29:47 +0200
commitdd574146fb5f05c1c0a469a4ad4a20c46bb37d74 (patch)
tree581cf26bcc2a5a31da00a66fd3255cfd489faced /src/Ryujinx.Ava/Program.cs
parent2c94ac455ead867aac0a7a689a55d814a8bcc0da (diff)
Add hide-cursor command line argument & always hide cursor option (#4613)1.1.743
* Add hide-cursor command line argument * gtk: Adjust SettingsWindow for hide cursor options * ava: Adjust SettingsWindow for hide cursor options * ava: Add override check for HideCursor arg * Remove copy&paste sins * ava: Leave a little more room between the options * gtk: Fix hide cursor issues * ava: Only hide cursor if it's within the embedded window
Diffstat (limited to 'src/Ryujinx.Ava/Program.cs')
-rw-r--r--src/Ryujinx.Ava/Program.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Ryujinx.Ava/Program.cs b/src/Ryujinx.Ava/Program.cs
index 7f35c62a..0629e606 100644
--- a/src/Ryujinx.Ava/Program.cs
+++ b/src/Ryujinx.Ava/Program.cs
@@ -183,6 +183,18 @@ namespace Ryujinx.Ava
{
ConfigurationState.Instance.System.EnableDockedMode.Value = CommandLineState.OverrideDockedMode.Value;
}
+
+ // Check if HideCursor was overridden.
+ if (CommandLineState.OverrideHideCursor is not null)
+ {
+ ConfigurationState.Instance.HideCursor.Value = CommandLineState.OverrideHideCursor!.ToLower() switch
+ {
+ "never" => HideCursorMode.Never,
+ "onidle" => HideCursorMode.OnIdle,
+ "always" => HideCursorMode.Always,
+ _ => ConfigurationState.Instance.HideCursor.Value
+ };
+ }
}
private static void PrintSystemInfo()
@@ -226,4 +238,4 @@ namespace Ryujinx.Ava
Logger.Shutdown();
}
}
-}
+} \ No newline at end of file