Can't fire and jump with the keyboard at the same time. GamePad works fine

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By zeeawk
:warning: Old Version Published before Godot 3 was released.

Im confused. Using code like this


_input(event): 
    #bound to spacebar and game controller button a. 
    if event.is_action_pressed("jump"):
        do stuff..
_process:
    #bound to ctrl and game controller button b. 
    Input.is_action_pressed("fire"):
        do stuff

If using the game controller I can hold down fire and press jump as many times just fine. But on the keyboard if I hold down ctrl and press space I don’t jump at all. If I hold down the fire button on the controller I can press space on the keyboard just fine.
Whats going on?

This must be hardware related. I changed jump to “z” and fire to “x” and everything works fine.

zeeawk | 2017-06-02 03:17

Does this happen if you bind, say, A instead of Ctrl to shoot?

Zylann | 2017-06-02 09:59

:bust_in_silhouette: Reply From: eons

Is something called ghosting, more about ghosting here:
https://www.microsoft.com/appliedsciences/antighostingexplained.mspx