Class Input

Namespace: AppMana.Compatibility

This class provides a familiar Input API in front of Input System that is compatible with AppMana streams.

public static class Input

Inheritance

object ← Input

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

acceleration

public static Vector3 acceleration { get; }

Property Value

Vector3

anyKey

public static bool anyKey { get; }

Property Value

bool

anyKeyDown

public static bool anyKeyDown { get; }

Property Value

bool

compensateSensors

public static bool compensateSensors { get; set; }

Property Value

bool

compositionCursorPos

public static Vector2 compositionCursorPos { set; }

Property Value

Vector2

mousePosition

Returns the Pointer, which is the last nonzero touch or current mouse position.

public static Vector2 mousePosition { get; }

Property Value

Vector2

multiTouchEnabled

public static bool multiTouchEnabled { get; }

Property Value

bool

simulateMouseWithTouches

public static bool simulateMouseWithTouches { get; }

Property Value

bool

touchPressureSupported

public static bool touchPressureSupported { get; }

Property Value

bool

touchSupported

Touch is always enabled on AppMana. Design around Pointer, not touch or mouse devices.

public static bool touchSupported { get; }

Property Value

bool

touches

public static ReadOnlyArray<UnityEngine.InputSystem.EnhancedTouch.Touch> touches { get; }

Property Value

ReadOnlyArray<UnityEngine.InputSystem.EnhancedTouch.Touch>

Methods

GetAxis(string)

public static float GetAxis(string name)

Parameters

name string

Returns

float

GetButton(string)

public static bool GetButton(string name)

Parameters

name string

Returns

bool

GetButtonDown(string)

public static bool GetButtonDown(string name)

Parameters

name string

Returns

bool

GetButtonUp(string)

public static bool GetButtonUp(string name)

Parameters

name string

Returns

bool

GetKey(string)

public static bool GetKey(string name)

Parameters

name string

Returns

bool

GetKey(Key)

public static bool GetKey(Key key)

Parameters

key Key

Returns

bool

GetKey(KeyCode)

public static bool GetKey(KeyCode key)

Parameters

key KeyCode

Returns

bool

GetKeyDown(string)

public static bool GetKeyDown(string name)

Parameters

name string

Returns

bool

GetKeyDown(Key)

public static bool GetKeyDown(Key key)

Parameters

key Key

Returns

bool

GetKeyDown(KeyCode)

public static bool GetKeyDown(KeyCode key)

Parameters

key KeyCode

Returns

bool

GetKeyUp(string)

public static bool GetKeyUp(string name)

Parameters

name string

Returns

bool

GetKeyUp(Key)

public static bool GetKeyUp(Key key)

Parameters

key Key

Returns

bool

GetKeyUp(KeyCode)

public static bool GetKeyUp(KeyCode key)

Parameters

key KeyCode

Returns

bool

GetMouseButton(int)

public static bool GetMouseButton(int index)

Parameters

index int

Returns

bool

GetMouseButtonDown(int)

public static bool GetMouseButtonDown(int index)

Parameters

index int

Returns

bool

GetMouseButtonUp(int)

public static bool GetMouseButtonUp(int index)

Parameters

index int

Returns

bool

GetTouch(int)

public static UnityEngine.InputSystem.EnhancedTouch.Touch GetTouch(int index)

Parameters

index int

Returns

UnityEngine.InputSystem.EnhancedTouch.Touch

ResetInputAxes()

public static void ResetInputAxes()