Table of Contents

Class MapInput

Namespace
LansMap.Interaction
public static class MapInput
Inheritance
object
MapInput

Properties

PointerPosition

public static ScreenPoint PointerPosition { get; }

Property Value

ScreenPoint

ScrollDelta

public static float ScrollDelta { get; }

Property Value

float

TouchCount

public static int TouchCount { get; }

Property Value

int

TouchSupported

public static bool TouchSupported { get; }

Property Value

bool

Methods

FlipY(Vector2, float)

public static ScreenPoint FlipY(Vector2 rawPosition, float screenHeight)

Parameters

rawPosition Vector2
screenHeight float

Returns

ScreenPoint

GetKey(KeyCode)

public static bool GetKey(KeyCode key)

Parameters

key KeyCode

Returns

bool

GetKeyDown(KeyCode)

public static bool GetKeyDown(KeyCode key)

Parameters

key KeyCode

Returns

bool

GetMouseButton(int)

public static bool GetMouseButton(int button)

Parameters

button int

Returns

bool

GetMouseButtonDown(int)

public static bool GetMouseButtonDown(int button)

Parameters

button int

Returns

bool

GetMouseButtonUp(int)

public static bool GetMouseButtonUp(int button)

Parameters

button int

Returns

bool

GetTouch(int)

public static MapTouch GetTouch(int index)

Parameters

index int

Returns

MapTouch

ToMapTouchPhase(TouchPhase)

public static MapTouchPhase ToMapTouchPhase(TouchPhase phase)

Parameters

phase TouchPhase

Returns

MapTouchPhase