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.
Inherits: InputEventFromWindow< InputEvent< Resource< RefCounted< Object Inherited By: InputEventGesture, InputEventKey, InputEventMouse Abstract base class for input events affected by modifier ke...
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.
Exerion
December 23, 2023, 8:04am
4
No, you have to check it in code exactly as you did in your example.
1 Like
system
Closed
January 22, 2024, 8:05am
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.