Assign parallel pressing of two controller buttons to input map

Godot Version

4.2.1

Question

Is it possible to assign the combination of two controller buttons pressed in parallel to an input map?

I guess I could catch it in script by using something like

if Input.is_action_pressed("left_shift") and Input.is_action_pressed("arrow_right"):
      player.sprint()

but it would be nice if I could assign it straight in input map.

As long as it is a modifier key Iā€™m pretty sure you can

1 Like

Sorry, guess my script example was misleading. I was wondering if there is a way to assign two Gamepad controller buttons via the Input Map GUI in the project settings.

No, you have to check it in code exactly as you did in your example.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.