From: "steve" <
sjbaker1@...>
>
> 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).
Whoa. I had no idea.
Now I wonder how Quake2 is implemented on Linux.
I just chatted with a Linux Q2 engine developer, who
confirmed that Q2 does run under X, and, it does
receive independent events for the shift / alt keys,
even if no other keys are pressed.
He suggested I run `xev`, an event reporting tool for
X, saying that he also gets independent shift and alt
key events there.
(I don't have a linux box with X installed at present,
so I couldn't try it personally.)
So I guess the question is, do `xev` and Quake2 get
their events in some non-portable fashion... I dunno.
:-(
(I'll be interested to see what SDL does, as well...
I wouldn't harp on the matter, except I was planning
to be able to bind the modifier keys in my FreeGLUT
app, as they can be in Q2...)
Regards,
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