Multiple inputs are being ignored.
Operating system or device - Godot version: Windows 10, godot version 2.1.2 issue presists in 3.0
Issue description: I setup a basic input function with arrow keys. pressing LEFT, RIGHT, and DOWN, each input was acknowledged. however when i did LEFT, RIGHT, and UP, UP was ignored. i then tested by holding down some letter keys: G, H and L, and all arrow key inputs were ignored
Steps to reproduce:
func _process(delta):
if Input.is_key_pressed(KEY_UP) && Input.is_key_pressed(KEY_LEFT) && Input.is_key_pressed(KEY_UP):
print("this wont appear")
alternative:
func _input(event):
if event.type == InputEvent.KEY && !event.is_echo():
for v in buttons:
if event.scancode == v:
if event.is_pressed():
emit_signal(str(buttons[v],"_key_pressed"))
else:
emit_signal(str(buttons[v],"_key_unpressed"))
get_tree().set_input_as_handled()
Can you test if your hardware can handle multiple presses? (keyboards are physically limited and there may be other factors too)
Here is a nice post about keyboard ghosting and a simple program to test it https://www.microsoft.com/appliedsciences/antighostingexplained.mspx
This appears to be the issue then, thanks.
Hehe I think issues like this appeares a couple times already
On May 6, 2017 1:48 PM, "Flavo" [email protected] wrote:
This appears to be the issue then, thanks.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/godotengine/godot/issues/8666#issuecomment-299637770, or mute the thread https://github.com/notifications/unsubscribe-auth/AF-Z27pNGql78TRXeHB6tm8MK27Ppr6kks5r3GwcgaJpZM4NSqYe .