QB64 Phoenix Edition
_CONSOLEINPUT is blocking - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: _CONSOLEINPUT is blocking (/showthread.php?tid=3388)

Pages: 1 2


RE: _CONSOLEINPUT is blocking - mdijkens - 01-21-2025

Actually it is not a replacement but a new function compatible with _KEYHIT

You can call it like this:
Code: (Select All)
Function checkKey&
  $If _CONSOLE_ = 2 Then
    Declare Library "./cKeyhit"
      Function cKeyhit ()
    End Declare
    checkKey& = cKeyhit
  $Else
    checkKey& = _Keyhit
  $End If
End Function



RE: _CONSOLEINPUT is blocking - SMcNeill - 01-21-2025

Just curious, but wouldn't it have just been easier to write the substitution code in pure basic and just make it a Function?


RE: _CONSOLEINPUT is blocking - mdijkens - 01-21-2025

That was the initial plan, but turned out I also needed UnicodeChar for normal characters. Otherwise my case statements needed to include mapping for all normal keys also


RE: _CONSOLEINPUT is blocking - Pete - 01-21-2025

And I've replaced bailing wire with floss, because it's easier on my gums when removing the chewing gum residue.

+ 1 to Rho for the immediate chewing gum and bailing wire solution, and looking forward to the perm fix in the next issue. You rock!

Pete