mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
fix some issue with android Touchkit library. I think I'm removing it soon anyways
This commit is contained in:
@@ -55,16 +55,18 @@ public class TKLTouch
|
||||
/// </summary>
|
||||
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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user