|
-
Aug 10th, 2000, 09:40 AM
#1
Thread Starter
Lively Member
hello,
does anyone know how to read the keyboard buffer/ or keyboard scan codes with Qbasic.
why ?
I want to read different paralel inputs from a inputdevice ( cheap solutions only so i'am tring the keyboard at the moment)
other tips on i/o interface & sample code welcome !
-
Aug 16th, 2000, 11:53 PM
#2
Member
I assume you don't *really* want to read the keyboard buffer ... if you do, you want to use INKEY$ .
For example:
<tt>
DO
PRINT INKEY$;
LOOP
</tt>
INKEY$ returns null ( "" ) if there's nothing on the buffer. The buffer limit is (iirc) 13. The following clears the buffer:
FOR T = 1 TO 15
a$ = INKEY$
NEXT T
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|