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