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
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
anyKeyDown
public static bool anyKeyDown { get; }
Property Value
compensateSensors
public static bool compensateSensors { get; set; }
Property Value
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
simulateMouseWithTouches
public static bool simulateMouseWithTouches { get; }
Property Value
touchPressureSupported
public static bool touchPressureSupported { get; }
Property Value
touchSupported
Touch is always enabled on AppMana. Design around Pointer, not touch or mouse devices.
public static bool touchSupported { get; }
Property Value
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
GetButton(string)
public static bool GetButton(string name)
Parameters
name string
Returns
GetButtonDown(string)
public static bool GetButtonDown(string name)
Parameters
name string
Returns
GetButtonUp(string)
public static bool GetButtonUp(string name)
Parameters
name string
Returns
GetKey(string)
public static bool GetKey(string name)
Parameters
name string
Returns
GetKey(Key)
public static bool GetKey(Key key)
Parameters
key Key
Returns
GetKey(KeyCode)
public static bool GetKey(KeyCode key)
Parameters
key KeyCode
Returns
GetKeyDown(string)
public static bool GetKeyDown(string name)
Parameters
name string
Returns
GetKeyDown(Key)
public static bool GetKeyDown(Key key)
Parameters
key Key
Returns
GetKeyDown(KeyCode)
public static bool GetKeyDown(KeyCode key)
Parameters
key KeyCode
Returns
GetKeyUp(string)
public static bool GetKeyUp(string name)
Parameters
name string
Returns
GetKeyUp(Key)
public static bool GetKeyUp(Key key)
Parameters
key Key
Returns
GetKeyUp(KeyCode)
public static bool GetKeyUp(KeyCode key)
Parameters
key KeyCode
Returns
GetMouseButton(int)
public static bool GetMouseButton(int index)
Parameters
index int
Returns
GetMouseButtonDown(int)
public static bool GetMouseButtonDown(int index)
Parameters
index int
Returns
GetMouseButtonUp(int)
public static bool GetMouseButtonUp(int index)
Parameters
index int
Returns
GetTouch(int)
public static UnityEngine.InputSystem.EnhancedTouch.Touch GetTouch(int index)
Parameters
index int
Returns
UnityEngine.InputSystem.EnhancedTouch.Touch
ResetInputAxes()
public static void ResetInputAxes()
