PDA

View Full Version : Keys in GLUT



LordOfTheUniverse
12-15-2002, 04:36 AM
Hi,
Is there a way to set flags for keys if they are pressed
or released using GLUT??
If so - how to start with it ,
If no - how to achive it under Linux (or without using windows specific functions)?

M/\dm/\n
12-15-2002, 10:31 PM
There was some sort of glutKeyReleaseFunc & glutKeyDown funcs, dont remember exactly, but that's what I allways use http://www.opengl.org/discussion_boards/ubb/smile.gif Check glut.h http://www.opengl.org/discussion_boards/ubb/biggrin.gif

147-2
12-16-2002, 12:07 PM
Well, there are callback functions in GLUT, so I suppose you can set bits in variables in some of these functions, for later use (say in your render loop or something). Me personally, I wouldnt use GLUT because it's dated.