public override InputAction GetAction(InputActionDef def)
    {
        int index = actionToIndex[def];

        return(actions[index].action);
    }
Exemple #2
0
    public InputAction GetAction(InputSource source, string name)
    {
        InputActionDef def = GetActionDef(name);

        return(def == null ? new InputAction() : source.GetAction(def));
    }
Exemple #3
0
 public abstract InputAction GetAction(InputActionDef def);
Exemple #4
0
    public InputAction GetAction(InputSource source, InputActionField field)
    {
        InputActionDef def = GetActionDef(field.name);

        return(def == null ? new InputAction() : source.GetAction(def));
    }