From: Gary AT bbs DOT st DOT net DOT au (Gary) Newsgroups: comp.os.msdos.djgpp Subject: GRX22:event queue mechanism Date: 12 Apr 98 22:54:50 Organization: Soft-Tech +61-7-3869-2666 Lines: 16 Message-ID: References: NNTP-Posting-Host: 203.37.129.8 Cache-Post-Path: sun.brisnet.org.au!unknown AT bbs DOT st DOT net DOT au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk hello all,once again i call apon your indefinite wisdom for help in figuring out how to use the event-queue mechanism,please be kind to me as I'm still learning how to program,what i can do is read the length and size of the queue ,however,in a short prg that i wrote to test how to use this,in which i had a loop,that polled for key presses,using the GrMouseGetEvent();,i found that the length never changed from zero,yet if key presses are going into the buffer then the length should change,all i can get at the moment is the number of keypresses and mouse button clicks,in using the qread and qwrite variables, when it gets to 127 it then wraps around and starts again at zero. When i try to access the GrMouseInfo->queue->key there is just a big value there sometimes with a -sign in front of it so i suspect that i may be going about this the wrong way due to my lack of expertise in programming. any help forthcoming would be greatly appreciated and i must say here many thanks to all those that have replied to my previous querys. I thank you in advance for your time in reading this. Gary Lloyd.