Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!dftsrv!iris613!merritt From: merritt@iris613.gsfc.nasa.gov (John H Merritt) Newsgroups: comp.sys.sgi Subject: Re: qdevice and stuff......... Message-ID: <1477@dftsrv.gsfc.nasa.gov> Date: 29 Mar 90 01:58:45 GMT References: <1990Mar28.192724.26499@cunixf.cc.columbia.edu> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: merritt@iris613.UUCP (John H Merritt) Organization: Goddard Space Flight Center Climate and Radiation Branch Lines: 27 In article <1990Mar28.192724.26499@cunixf.cc.columbia.edu> kaul@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@iris613.gsfc.nasa.gov #