Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Crafty and single-computer winboard matches

Author: Ratko V Tomic

Date: 19:28:42 10/07/99

Go up one level in this thread


On October 07, 1999 at 22:08:38, Ratko V Tomic wrote:

>Windows, is to check the keyboard buffer pointers, i.e. in C you can
>declare a pointer:
>
>   short far *kbd=0x41a;
>
>Then you can test for key present using a macro:
>
>   #define anykey()  (kbd[0]!=kbd[1])
>

In case your C compiler is set to one of those fussy warning modes,
you should declare kbd with a cast:


   short far *kbd=(short far*)0x41a;




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.