08-01-2024, 01:49 PM
@SMcNeill
@Pete
Good job! It works well.
Quote:Why not just use variable length strings and not have the worry over it?We finally come full circle. https://qb64phoenix.com/forum/showthread.php?tid=2889 and https://github.com/QB64-Phoenix-Edition/...issues/524
@Pete
(07-31-2024, 06:50 PM)Pete Wrote: @justsomeguy
If I had to make a workaround in my code, I'd need to do this...
Code: (Select All)Type tt
' Use 2 bytes to capture 2 byte combinations
k As String * 2
End Type
Dim As tt t
Do
_Limit 30
t.k = Chr$(0) + Chr$(0) ' This line and the MID$() line below clears up the issue. Space bar can now be detected.
Mid$(t.k, 1, 2) = InKey$
If t.k <> Chr$(0) + Chr$(0) Then
Print Mid$(t.k, 1, 1), Mid$(t.k, 2, 1), Asc(Mid$(t.k, 1, 1)), Asc(Mid$(t.k, 2, 1))
End If
Loop
Pete
Good job! It works well.
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