qdevice and stuff.........

John H Merritt merritt at iris613.gsfc.nasa.gov
Thu Mar 29 11:58:45 AEST 1990


In article <1990Mar28.192724.26499 at cunixf.cc.columbia.edu> kaul at cunixa.cc.columbia.edu (Anil Kaul) writes:


>It appears that one entry is for key being depressed and the other       
>for the key while being released.

Precisely why one codes

		event = qread(&val)
		...
		if (val)   (button went down)
		if (!val)  (button went up)

>I would actually like to get only one entry everytime the key is depressed.

and one entry when it is released.

>Is there something I can do to avoid getting two enteries from each key?
                                              ^^^
0, 1, or more than 2 entries?  :-)

I've seen no routine which only queues the keyboard keys in only direction.
I simply choose to ignore the event.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
John H. Merritt                   #  Yesterday I knew nothing,
Applied Research Corporation      #  Today I know that.
merritt at iris613.gsfc.nasa.gov     #



More information about the Comp.sys.sgi mailing list