0 votes

Im confused. Using code like this


input(event):
#bound to spacebar and game controller button a.
if event.is
actionpressed("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?
in Engine by (15 points)

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

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

1 Answer

+1 vote
Best answer

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

by (7,868 points)
selected by
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.