Bill Kelly wrote:
> Sorry for my n00b question - but to clarify: Does that mean
> one can't get an event for the modifier keys themselves?
Right - there is no X-windows event for one of those keys
changing state.
> Like, let's say I wanted to bind "left-shift" to make my
> character walk instead of run while the left shift key
> is pressed.
You mean that (say) you hold down the left arrow key to
make your character walk to the left - then while the arrow
key is held down, you push the shift key to turn walking
left into running left?
If that's what you mean then that's OK because you get an
event for the arrow key whenever it is pressed or if it changes
from being 'Left arrow' to 'Shifted left arrow'. Once inside
the GLUT key event callback, you can test the status of the
shift key...no problem there. Ditto with CTRL and ALT.
If, however, you wanted to fire a gun every time the shift
key was pressed (even when no other keys are held down)
then that would be a major problem.
> I want to detect that press/release regardless
> of whether other keys are pressed. Are you implying that
> wouldn't be possible, or have I misunderstood?
No - that's impossible (in a portable manner at least).
-------------------------------------------------------------------------
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&kid=120709&bid=263057&dat=121642_______________________________________________
Freeglut-developer mailing list
Freeglut-developer@...
https://lists.sourceforge.net/lists/listinfo/freeglut-developer