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