From: Fay J. F Dr C. U. AFSEO/SK <joh...@eg...> - 2006-05-11 16:26:27
|
OK, I found something. The Linux keyboard events--particularly having to do with autorepeats--are handled in "freeglut_main.c" around lines 835-865. The "if" statement on line 865, in particular, skips the rest of the processing if the "KeyRepeating" flag is set. The code does not check whether the key being pressed is the same as the key that generated the auto-repeat calls. John F. Fay Technical Fellow, Jacobs/Sverdrup TEAS Group 850-729-6330 joh...@eg... _____ From: fre...@li... [mailto:fre...@li...] On Behalf Of Fay John F Dr CTR USAF AFSEO/SK Sent: Thursday, May 11, 2006 8:50 AM To: fre...@li... Subject: RE: [Freeglut-developer] Strange behaviour with keyboard callback s THANK YOU, that makes all the difference in the world. When I modified the "CallbackMaker" demo to turn the key repeat off, I got the same behaviour you reported. It appears only in the Linux version, though; the Windows version gives all the correct callbacks. I don't recall whether I reported this yesterday, but when I had the key repeat on, Windows gave me a series of keypress callbacks while Linux gave me a series of alternating keypress and key release callbacks. What does GLUT do? John F. Fay Technical Fellow, Jacobs/Sverdrup TEAS Group 850-729-6330 joh...@eg... -----Original Message----- From: fre...@li... [mailto:fre...@li... <mailto:fre...@li...> ] On Behalf Of Marius B Sent: Wednesday, May 10, 2006 5:34 PM To: fre...@li... Subject: Re: [Freeglut-developer] Strange behaviour with keyboard callback s Am, I use glutSetKeyRepeat(GLUT_KEY_REPEAT_OFF), maybe that would help to reproduce? ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> &kid=120709&bid=263057&dat=121642 _______________________________________________ Freeglut-developer mailing list Fre...@li... https://lists.sourceforge.net/lists/listinfo/freeglut-developer <https://lists.sourceforge.net/lists/listinfo/freeglut-developer> |