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