InputStateExtFindFirstHeld Method (InputState) |
[This is preliminary documentation and is subject to change.]
Namespace: RavingBots.MultiInput
public static IDevice FindFirstHeld( this InputState state )
var state = FindObjectOfType<InputState>(); var device = state.FindFirstHeld(); if (device != null) { Debug.LogFormat("Found non-zero axis on device {0}", device.Name); } else { Debug.LogFormat("Non-zero axis not found"); }