TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ERIC SCHONNING
from: LOU SANDERS
date: 1995-06-23 19:32:00
subject: Keyboard polling & OS/2

21 Jun 95 21:14, Eric Schonning wrote to Scott Vetter:
 SV>> Is there a way under OS/2 and running a PB program that polls
 SV>> the keyboard to give up some of the time slices?   When the
 SV>> program runs a polls for the keyboard performance of the whole
 SV>> OS/2 system goes down the tubes.  OS/2's Pulse display shows this
 SV>> to be true.  I tried adjusting the idle-sensitivity and
 SV>> idle-seconds but to no avail.
 ES> Supposedly calling int 28h in your polling loop will give up the time
 ES> slice and speed things up.  no registers to set just say call
 ES> interrupt &h28.  I'd be interested in knowing if that works as i don't
 ES> have os/2 set up anywhere and no way to test it.     eric
Hello Eric!
Int 15 or 1Ch works very well, It's in one of the TIPS included with 
PowerBASIC...
          ...Lou Sanders
--- GoldED/2 2.50.Beta5+
---------------
* Origin: The Basic OutPost System (1:143/333)

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™.