mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-03-11 23:44:26 +01:00
Change ShowTouchKeyboard to be KeyboardStyles
This commit is contained in:
parent
77f36bbced
commit
70492acd74
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue