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

Kenneth Josiah Harris kj at sgi.com
Fri Mar 30 06:03:59 AEST 1990


In article <1990Mar28.192724.26499 at cunixf.cc.columbia.edu> kaul at cunixa.cc.columbia.edu (Anil Kaul) writes:
>Hi,                                                                             
>   I have been trying to queue certain keys on the keyboard, but have 
>come up with a strange error: 
>   Whenever I press a key it seems to record two enteries in the event 
>queue. It appears that one entry is for key being depressed and the other 
>for the key while being released. Is it true or am I messing up somewhere else?
>I would actually like to get only one entry everytime the key is depressed.    
>Is there something I can do to avoid getting two enteries from each key? 
>
>Thanks,
>
>- Anil.         
> 
>email: kaul at ibm.com
>       kaul at yktvmx.bitnet
>       kaul at cunixa.cc.columbia.edu
>                                                                
	You could queue the KEYBD device:

		qdevice(KEYBD);

	And then on "dev=qread(&val);",  "dev" will be "KEYBD", and "val" will
be the ASCII value of the character.
--
Ken J. Harris -- kj at sgi.com or {decwrl,pyramid,ucbvax}!sgi!kj



More information about the Comp.sys.sgi mailing list