Change ShowTouchKeyboard to be KeyboardStyles

This commit is contained in:
Kamil Trzciński 2022-12-10 11:05:34 +01:00
parent 77f36bbced
commit 70492acd74
2 changed files with 20 additions and 7 deletions

View file

@ -57,10 +57,16 @@ namespace SteamController.Profiles
if (c.Steam.BtnX.Pressed())
{
if (Settings.Default.ShowTouchKeyboard)
OnScreenKeyboard.Toggle();
else
c.Keyboard.KeyPress(new VirtualKeyCode[] { VirtualKeyCode.LCONTROL, VirtualKeyCode.LWIN }, VirtualKeyCode.VK_O);
switch (Settings.Default.KeyboardStyle)
{
case Settings.KeyboardStyles.CTRL_WIN_O:
c.Keyboard.KeyPress(new VirtualKeyCode[] { VirtualKeyCode.LCONTROL, VirtualKeyCode.LWIN }, VirtualKeyCode.VK_O);
break;
case Settings.KeyboardStyles.WindowsTouch:
OnScreenKeyboard.Toggle();
break;
}
}
if (c.Steam.BtnL1.Pressed())

View file

@ -59,12 +59,19 @@ namespace SteamController
set { Set("SteamControllerConfigs", value); }
}
public enum KeyboardStyles
{
DoNotShow,
WindowsTouch,
CTRL_WIN_O
}
[Browsable(true)]
[Description("Show Touch Keyboard or CTRL+WIN+O")]
public bool ShowTouchKeyboard
public KeyboardStyles KeyboardStyle
{
get { return Get<bool>("ShowTouchKeyboard", true); }
set { Set("ShowTouchKeyboard", value); }
get { return Get<KeyboardStyles>("KeyboardStyle", KeyboardStyles.WindowsTouch); }
set { Set("KeyboardStyle", value); }
}
public override string ToString()