GLBasic forum

Main forum => GLBasic - en => Topic started by: Enigma on 2008-Aug-07

Title: KeyHit - KeyDown
Post by: Enigma on 2008-Aug-07
Is there a way of having the key command only read one key press even if you hold that key down? In Blitz you have either KeyHit which only reads one key press (even if you hold it down) or you have KeyDown which reads the key as being held down.

If there is no current way of doing this, could it be added?
Title: Re: KeyHit - KeyDown
Post by: Moru on 2008-Aug-07
Gernots solution to that problem (http://www.glbasic.com/forum/index.php?topic=679.0)
Title: Re: KeyHit - KeyDown
Post by: Enigma on 2008-Aug-07
Couldn't this just not be added as 2 new commands? It would be much easier.
Title: Re: KeyHit - KeyDown
Post by: Moru on 2008-Aug-07
No, this way you can change things as you want them yourself, this is easy enough to use.
Title: Re: KeyHit - KeyDown
Post by: peterpan on 2008-Aug-07
Oh,
by the way, could you added : KeyLeft, KeyRight, KeyUp, KeyDown , KeySpace and KeyEscape' ?