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