Allow to select between touch keyboard or CTRL+WIN+O

This commit is contained in:
Kamil Trzciński 2022-12-04 21:21:39 +01:00
parent c2fa6c3a9d
commit 0a52c57d59
3 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -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())

View file

@ -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 "";