K
Karlabos
Guest
Hi.
In all my recent games I have been using keyboard_check() to check whether a key is being pressed or not.
But I noticed there is a limit (mostly 3 or more) keys which can be pressed at the same time.
For isntance if I configured my object to move with the arrows, toggle speed with X and shoot with Z, then
if I want to toggle, speed, shoot and press right sometimes it won't work. However if I stop holding either X or Z then it starts going right and I can either shoot or toggle speed again.
Basically ity seems there is some kind of priority on the keys which determines whether a key can be pressed while other is being held or not, and sometimes you need to overcome it by releasing and pressing again, which is annoying.
So... Why exactly does this happen?
Should I use other keyboard function instead?
In all my recent games I have been using keyboard_check() to check whether a key is being pressed or not.
But I noticed there is a limit (mostly 3 or more) keys which can be pressed at the same time.
For isntance if I configured my object to move with the arrows, toggle speed with X and shoot with Z, then
if I want to toggle, speed, shoot and press right sometimes it won't work. However if I stop holding either X or Z then it starts going right and I can either shoot or toggle speed again.
Basically ity seems there is some kind of priority on the keys which determines whether a key can be pressed while other is being held or not, and sometimes you need to overcome it by releasing and pressing again, which is annoying.
So... Why exactly does this happen?
Should I use other keyboard function instead?