-
-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Closed
Milestone
Description
Godot Master
https://godotengine.org/qa/28199/how-to-use-shortcuts-with-modifier
I am looking for something like this I thought godot checks this internally. Try to press CONTROL+S.
Expected result CONTROL_S
func _process(event):
if Input.is_action_just_pressed("CONTROL_S"): # KEY_CONTROL+KEY_S
print("CONTROL_S")
if Input.is_action_just_pressed("S"): # KEY_S
print("S")
# Output: CONTROL_S and S
This works but I can't use it in my case
func _process(delta):
if Input.is_action_just_released("CONTROL_S"): # KEY_CONTROL+KEY_S
print("CONTROL_S")
if Input.is_action_just_released("S") && !Input.is_action_just_released("CONTROL_S"): # KEY_S
print("S")
# Output: CONTROL_S
Reactions are currently unavailable