Better way to get input?

BlitzPlus Forums/BlitzPlus Programming/Better way to get input?

Oldbone(Posted 2005) [#1]
I'm not using any of the gui gadgets... only plain 2d.
Input() has issues..
I searched the articles at the old Blitzcoder.com and they all use a Wait Key() while loop to get text input, but the screen flashes between keystrokes and doesn't update animations..

is there a better way to handle text input that I'm just missing?

Thanks!


Grey Alien(Posted 2005) [#2]
post your code.


WolRon(Posted 2005) [#3]
The Input command ceases program execution until the user presses the Esc key, so it is usually not useful in most circumstances. And as you noticed, Waitkey() isn't much better.

There isn't an EASY way to collect text input while constantly refreshing the screen (double-buffering), but it can be done. You have to check each keys keystate with the KeyDown or KeyHit commands.
I'm nut sure, but there probably is already a working example in the code archives...