The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




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)