diff --git a/Assets/TouchKit/TouchKitLite/TKLTouch.cs b/Assets/TouchKit/TouchKitLite/TKLTouch.cs index cdc4c753..a0ef5edc 100644 --- a/Assets/TouchKit/TouchKitLite/TKLTouch.cs +++ b/Assets/TouchKit/TouchKitLite/TKLTouch.cs @@ -56,12 +56,14 @@ public class TKLTouch public void populate() { #if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WEBPLAYER || UNITY_WEBGL - if (!UnityEditor.EditorApplication.isRemoteConnected) - populateFromMouse(); +#if UNITY_EDITOR + if (!UnityEditor.EditorApplication.isRemoteConnected) +#endif + populateFromMouse(); #else populateWithTouch( Input.touches[0] ); #endif - } + } public bool hasMouseInput()