Mail Archives: djgpp/1998/04/12/10:00:59
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.
- Raw text -