Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fucking Awesome Spectrum Engine (FASE)
#6
Wow! How fast! Confusedhock:
There is already a simple IN (multikeyboard) library management in the standard /library/ directory (see https://github.com/boriel/zxbasic/blob/v...y/keys.bas).

You can use it with:
Code:
#include <keys.bas>

While 1 Do
    IF multikeys(KEYB) THEN PRINT "B Pressed" : End IF
    IF multikeys(KEYA) THEN PRINT "A Pressed" : End IF
    REM etc... etc...
End While
These routine detects several keys pressed at once (beware, there are some hardware limitations on the ZX Spectrum keyboard).
KEYB, KEYA, etc... are constants defined in the previous source code.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)