Search Unity

[new Input system] lists actions and compare them to current input

Discussion in 'Input System' started by joanCortes, Feb 8, 2021.

  1. joanCortes

    joanCortes

    Joined:
    Dec 26, 2020
    Posts:
    7
    I have a scriptable object called Move that had a list with keycodes (for example to make a Hadouken) easy to use and compare with the current input made it with the old system, but with the new input system I don't know how to make a list of actions (actions that are in my Input Action Asset not new ones) and compare that with the current inputs (and also I do not have any idea how to make buffering inputs like the last input repeats 3 frames).

    I already tried and not worked (InputMa is my InputActionAsset generated class):

    -InputActions[]

    -InputMa[]

    -InputMa.PlayerActions

    -InputActionReferences[] this seems the correct option, but I don't know how to get the reference from the current input.