TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: SCOTT VETTER
from: BOB SEWELL
date: 1995-07-07 00:24:00
subject: Keyboard polling & OS/2

 In a quote from the Daily Planet, Scott Vetter said:
 SV>     Is there a way under OS/2 and running a PB program that
 SV> polls the keyboard to give up some of the time slices?   When
 SV> the program runs and polls for the keyboard performance of the
 SV> whole OS/2 system goes down the tubes.
    Use INSTAT instead of INKEY$.  You may also need to call
 interrupt 2Fh, function 1680h when keyboard polling indicates
 nothing is in the keyboard buffer. I.e.,
   do
     if instat = 0 then
        reg 1, &h1680
        call interrupt &h2F
     else
        exit do
     end if
   loop
   k$ = inkey$
 
... Many people own cats... and go on to lead purrfectly normal lives.
--- PPoint 1.86
---------------
* Origin: Seven Wells On-Line * Nashville, TN (1:116/3000.12)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.