2
\$\begingroup\$

The new input system documentation says it's possible to add actions that require input combinations within the editor or code. I only see an option to add one binding path per action within in the Actions UI.

From the documentation:

... require the left trigger to be held and then the A button to be pressed and held for 0.4 seconds?

var action = new InputAction();
action.AddBinding("/<gamepad>/leftTrigger")
    .CombinedWith("/<gamepad>/buttonSouth", modifiers: "hold(duration=0.4)");

Again, setting this up with the inspector in the editor is an alternative to dealing with the path strings directly.

\$\endgroup\$
1
\$\begingroup\$

Multiple simple (i.e. one key/button) bindings per single InputAction is currently possible. Complex (multiple keys per single) binding was possible too but at some point there was a major rework of the new InputSystem. And to my best knowledge after the rework that feature no longer exists (as of today, ver 0.2.0). The guys working on the InputSystem said they plan to add it again.

P.S. There is customization available through Interactions but its relatively limited (as of ver 0.2.0) And i read that they will be doing additional pass to refine them.

|improve this answer|||||
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.