Wow! How fast!
hock:
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:
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.

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
KEYB, KEYA, etc... are constants defined in the previous source code.