diff --git a/Assets/OpenTerminal/Sample/Scene/SampleScene.unity b/Assets/OpenTerminal/Sample/Scene/SampleScene.unity index b0faf9e..7124979 100644 Binary files a/Assets/OpenTerminal/Sample/Scene/SampleScene.unity and b/Assets/OpenTerminal/Sample/Scene/SampleScene.unity differ diff --git a/Assets/OpenTerminal/Scripts/Terminal.cs b/Assets/OpenTerminal/Scripts/Terminal.cs index 8df78cc..d1b8a47 100644 --- a/Assets/OpenTerminal/Scripts/Terminal.cs +++ b/Assets/OpenTerminal/Scripts/Terminal.cs @@ -19,11 +19,13 @@ public class Terminal : MonoBehaviour private TerminalInputHandler inputHandler; private TerminalGUI terminalGui; public TouchScreenKeyboard touchScreenKeyboard; + public int mobileTouchCount = 4; void Awake() { instance = this; if (config == null) config = Resources.Load("Config/ZSH"); + if (mobileTouchCount <= 0) mobileTouchCount = 4; autoCompIndex = 0; autoCompList = new List(); terminalMethods = new TerminalMethods(); diff --git a/Assets/OpenTerminal/Scripts/TerminalInputHandler.cs b/Assets/OpenTerminal/Scripts/TerminalInputHandler.cs index 3571d37..b9ea397 100644 --- a/Assets/OpenTerminal/Scripts/TerminalInputHandler.cs +++ b/Assets/OpenTerminal/Scripts/TerminalInputHandler.cs @@ -64,7 +64,7 @@ private bool MobileInput() terminal.touchScreenKeyboard = null; } } - if (Input.touchCount == 4) + if (Input.touchCount == terminal.mobileTouchCount) { ellapsedTime += Time.deltaTime; }