From: "steve" <
sjbaker1@...>
>
> Gautier de Montmollin wrote:
>
>> So, my question: how to get a fresh status of these modifier keys,
>> independently of the other keys or the mouse ?
>
> No - you can't. That's actually an operating system restriction
> under some OS's - so to be portable, GLUT (and therefore freeglut)
> doesn't let you read the modifier keys outside of the mouse and
> keyboard callbacks.
>
> The reason is that these are MODIFIER keys - they MODIFY the function
> of other keys or of the mouse - so it doesn't make sense to read them
> other than when other keys/mouse are doing something.
Sorry for my n00b question - but to clarify: Does that mean
one can't get an event for the modifier keys themselves?
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. 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?
Thanks!
Bill
-------------------------------------------------------------------------
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