diff --git a/Assets/Plugins/TouchKit/TouchKitLite/TKLTouch.cs b/Assets/Plugins/TouchKit/TouchKitLite/TKLTouch.cs index cdc4c75..f95228c 100644 --- a/Assets/Plugins/TouchKit/TouchKitLite/TKLTouch.cs +++ b/Assets/Plugins/TouchKit/TouchKitLite/TKLTouch.cs @@ -55,16 +55,18 @@ public class TKLTouch /// public void populate() { -#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WEBPLAYER || UNITY_WEBGL +#if UNITY_EDITOR if (!UnityEditor.EditorApplication.isRemoteConnected) populateFromMouse(); +#elif UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WEBPLAYER || UNITY_WEBGL + populateFromMouse(); #else populateWithTouch( Input.touches[0] ); #endif - } + } - public bool hasMouseInput() + public bool hasMouseInput() { return Input.GetMouseButtonUp( 0 ) || Input.GetMouseButton( 0 ); }