qdevice and stuff.........
Brent L. Bates AAD/TAB MS294 x42854
blbates at AERO4.LARC.NASA.GOV
Thu Mar 29 22:46:31 AEST 1990
Nothing strange about that, that is the way it works. One entry
for the key going down and one when the key is released. Same for
mouse clicks. If you have the b key queued and you press the b key
down then execute the following:
dev=qread(val)
dev will equal "bkey" and val will be 1 for key down. When you release
the key dev will equal "bkey" and val will be 0 for key up.
When I queue keys, I usually ignore the event if val is 0. At the
moment the only time I check for a key up event is when it is a mouse
button.
--
Brent L. Bates
NASA-Langley Research Center
M.S. 361
Hampton, Virginia 23665-5225
(804) 864-2854
E-mail: blbates at aero4.larc.nasa.gov or blbates at aero2.larc.nasa.gov
More information about the Comp.sys.sgi
mailing list