mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-25 01:40:26 +01:00
Allow to select between touch keyboard or CTRL+WIN+O
This commit is contained in:
parent
c2fa6c3a9d
commit
0a52c57d59
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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 "";
|
||||
|
|
|
|||
Loading…
Reference in a new issue