diff --git a/RELEASE.md b/RELEASE.md index 1feb11b..b3ce4ed 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -24,3 +24,4 @@ It does help this project on being supported. - Allow to select Default profile (Desktop-mode profile) - Allow to change scroll direction - Debounce controller changes from Steam +- Allow to select between touch keyboard or CTRL+WIN+O diff --git a/SteamController/Profiles/DefaultGuideShortcutsProfile.cs b/SteamController/Profiles/DefaultGuideShortcutsProfile.cs index ddd2b99..a81e8a5 100644 --- a/SteamController/Profiles/DefaultGuideShortcutsProfile.cs +++ b/SteamController/Profiles/DefaultGuideShortcutsProfile.cs @@ -60,7 +60,10 @@ namespace SteamController.Profiles if (c.Steam.BtnX.Pressed()) { - OnScreenKeyboard.Toggle(); + if (Settings.Default.ShowTouchKeyboard) + OnScreenKeyboard.Toggle(); + else + c.Keyboard.KeyPress(new VirtualKeyCode[] { VirtualKeyCode.LCONTROL, VirtualKeyCode.LWIN }, VirtualKeyCode.VK_O); } if (c.Steam.BtnL1.Pressed()) diff --git a/SteamController/Settings.cs b/SteamController/Settings.cs index 33e28f0..448ce93 100644 --- a/SteamController/Settings.cs +++ b/SteamController/Settings.cs @@ -73,6 +73,16 @@ namespace SteamController set { this["SteamControllerConfigs"] = value; } } + [UserScopedSetting] + [BrowsableAttribute(true)] + [DefaultSettingValue("True")] + [Description("Show Touch Keyboard or CTRL+WIN+O")] + public bool ShowTouchKeyboard + { + get { return ((bool)(this["ShowTouchKeyboard"])); } + set { this["ShowTouchKeyboard"] = value; } + } + public override string ToString() { return "";