TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mark Kimes
from: Russell Coker
date: 1995-03-01 20:03:14
subject: Re: KbdCharIn(x, 1, 0)

RC>What should I do?  Check for fbStat==64?  Or do I 
 RC>have to use a seperate
 RC>thread doing KbdCharIn(&x, 0, 0) and use an event semaphore because
 RC>I can't get this API call to work as documented?

 MK> Whatever reason you pick, solution 2 is probably the best choice.

   Solution 1 fits in best with the design of my program.

 MK> Trying to port some DOS code that polls the keyboard by any chance?

   No.  Writing a multi-threaded program (64+ threads) that will only ever
run under OS/2.  However it suits my design to have keyboard input and
checking an event semaphore in the main thread.  So I want to do a 1000ms
wait on the event semaphore and then poll the keyboard.  That activity once
a second will be nothing compared to what all thhe other threads are doing.


    cya


--- Maximus/2 2.02
* Origin: Multi - 61-3-739-7145 (3:633/363)
SEEN-BY: 620/243 624/50 632/103 301 341 348 386 998 633/154 252 260 363 371
SEEN-BY: 633/373 379 634/384 635/301 502 503 636/100 638/100 640/820 690/660
SEEN-BY: 711/409 410 413 430 807 808 809 934 942 949 955 712/515 713/888
SEEN-BY: 800/1 7877/2809
@PATH: 633/363 260 371 635/503 632/348 711/409 808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

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