public ButtonEvent(MouseInput.ButtonStatus status, int buttonId, Vector2 pressedPosition, Vector2 releasedPosition, float heldTime)
 {
     Status = status;
     ButtonId = buttonId;
     PressedPosition = pressedPosition;
     ReleasedPosition = releasedPosition;
     HeldTime = heldTime;
 }
 public InputManager()
 {
     //only enable touch input for mobile devices
     if(UnityEngine.Application.platform == UnityEngine.RuntimePlatform.Android ||
         UnityEngine.Application.platform == UnityEngine.RuntimePlatform.IPhonePlayer ||
         UnityEngine.Application.platform == UnityEngine.RuntimePlatform.WP8Player)
     {
         Touch = new TouchInput();
         Mouse = null;
     }
     else
     {
         Mouse = new MouseInput();
         Touch = null;
     }
 }