Class MapInput
public static class MapInput
- Inheritance
-
object
MapInput
Properties
public static ScreenPoint PointerPosition { get; }
Property Value
- ScreenPoint
public static float ScrollDelta { get; }
Property Value
- float
public static int TouchCount { get; }
Property Value
- int
public static bool TouchSupported { get; }
Property Value
- bool
Methods
public static ScreenPoint FlipY(Vector2 rawPosition, float screenHeight)
Parameters
rawPosition Vector2
screenHeight float
Returns
- ScreenPoint
public static bool GetKey(KeyCode key)
Parameters
key KeyCode
Returns
- bool
public static bool GetKeyDown(KeyCode key)
Parameters
key KeyCode
Returns
- bool
public static bool GetMouseButton(int button)
Parameters
button int
Returns
- bool
public static bool GetMouseButtonDown(int button)
Parameters
button int
Returns
- bool
public static bool GetMouseButtonUp(int button)
Parameters
button int
Returns
- bool
public static MapTouch GetTouch(int index)
Parameters
index int
Returns
- MapTouch
public static MapTouchPhase ToMapTouchPhase(TouchPhase phase)
Parameters
phase TouchPhase
Returns
- MapTouchPhase