delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/12/10:00:59

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: <fc7_9804122304@softtech.st.net.au>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980330173129 DOT 20293G-100000 AT is>
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019