07-28-2024, 03:57 PM
As an addendum to my prior post. https://qb64phoenix.com/forum/showthread.php?tid=2889
If I attempt to use INKEY$ with a fixed length string I get no values.
Here is an example:
It doesn't appear to matter how many bytes I allocate, It does not work.
I know there are many workarounds, like using _KEYHIT, or not using fixed length strings.
Again, I'm on Linux using QB64pe v3.13
If I attempt to use INKEY$ with a fixed length string I get no values.
Here is an example:
Code: (Select All)
TYPE tt
' Use 2 bytes to capture 2 byte combinations
'k AS STRING ' Works
k AS STRING * 2 ' Does Not work
END TYPE
DIM AS tt t
DO
t.k = INKEY$
LOCATE 1, , 1
PRINT "k:"; t.k
LOOP
It doesn't appear to matter how many bytes I allocate, It does not work.
I know there are many workarounds, like using _KEYHIT, or not using fixed length strings.
Again, I'm on Linux using QB64pe v3.13
2D physics engine https://github.com/mechatronic3000/fzxNGN
Untitled Rouge-like https://github.com/mechatronic3000/Untitled-Rougelike
QB Pool https://github.com/mechatronic3000/QBPool
Untitled Rouge-like https://github.com/mechatronic3000/Untitled-Rougelike
QB Pool https://github.com/mechatronic3000/QBPool