Hello.
We have added these features. Please update Online Maps.
Example (actually, this example is included in the package):
using UnityEngine;
namespace InfinityCode.OnlineMapsExamples
{
[AddComponentMenu("Infinity Code/Online Maps/Examples (API Usage)/InterceptInputExample")]
public class InterceptInputExample : MonoBehaviour
{
private Vector2 OnGetInputPosition()
{
#if !UNITY_EDITOR
// On the device returns center of screen.
return Camera.main.ViewportToScreenPoint(new Vector3(0.5F, 0.5F, 0));
#else
// In the editor returns the coordinates of the mouse cursor.
return Input.mousePosition;
#endif
}
private int OnGetTouchCount()
{
// If pressed Z, then it will work like the left mouse button.
return Input.GetKey(KeyCode.Z) ? 1 : 0;
}
private void Start()
{
// Intercepts getting the cursor coordinates.
OnlineMapsControlBase.instance.OnGetInputPosition += OnGetInputPosition;
// Intercepts getting the number of touches.
OnlineMapsControlBase.instance.OnGetTouchCount += OnGetTouchCount;
}
}
}
Kind Regards,
Infinity Code Team