0 votes

For instance (this is running inside a physicsprocess),

if(Input.is_action_pressed("ui_cancel") && Input.is_action_pressed("ui_left")):
    print("CANCEL AND LEFT");
if(Input.is_action_pressed("ui_cancel") && Input.is_action_pressed("ui_up")):
    print("CANCEL AND UP");
if(Input.is_action_pressed("ui_cancel") && Input.is_action_pressed("ui_left") && Input.is_action_pressed("ui_up")):
    print("CANCEL AND LEFT AND UP");

When playing on a keyboard, CANCEL AND LEFT AND UP is never reached. If you are holding two of these keys, presses on the 3rd are simply not detected. The other three combinations of cardinal directions are fine.

This only applies to playing on a keyboard; on a controller, it's fine.

I figured out that the problem is with the Esc key. If I change the mapping to Tab, for instance, this problem goes away. Anyone else run into this? What's going on with the Escape key?

Godot version 3.2.3.stable.official
in Engine by (12 points)

1 Answer

+1 vote

This is called "keyboard ghosting" and is a limitation of your hardware keyboard, nothing to do with Godot at all.

You can test which combinations of keys don't work on your keyboard with a tool like this: https://drakeirving.github.io/MultiKeyDisplay/

by (20,481 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.