Different type of loop

Blitz3D Forums/Blitz3D Programming/Different type of loop

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Yeah, GetKey() pretty much only works with ASCII keys, that is, keys that have letters, number or symbols. GetKey() is actually extremely handy for text input; try this little snippet:

SetBuffer BackBuffer()


While Not KeyHit(1)


Cls


GK = GetKey()
If GK <> 0
    TextLine$ = TextLine + Chr(GK)
EndIf
Text 0,0,TextLine + "_"


Flip


Wend


Do some typing & see what happens. Also notice that when using GetKey(), the use of the Shift key is automatically compensated for. Try typing "AaBb."