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