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