![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | bob333 |
The following code prints “pressed” repeatedly when the right key is pressed and held without releasing. How to avoid receiving multiple key events when the key is pressed and held ? Thanks
func _input(event):
if Input.is_action_pressed("ui_right"):
print("pressed") # printed multiple times, how to avoid this