"freeglut" does not capture the Control, Shift, or Alt key press and
release events when they happen. When the application is in a callback from
"freeglut" it can call "glutGetModifiers" which will return a bitmap with
the bits set or unset:
A typical application uses code like
if ( glutGetModifiers() & GLUT_ACTIVE_SHIFT )
/* SHIFT key pressed */
/* SHIFT key not pressed */
For system-specific code you can look in "freeglut_main.c" around line 495
for X11 and around line 1086 for Windows.
I hope this helps.
John F. Fay
[mailto:freeglut-developer-admin@...] On Behalf Of Neszt
Sent: Tuesday, December 28, 2004 3:48 PM
Subject: [Freeglut-developer] spec keys
How can I catch the shift (or ctrl) key event in freeglut?
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Freeglut-developer mailing list
From: Neszt Tibor <neszt@sz...> - 2004-12-29 08:43:47
Thank You for the help.
Let me another question:
I use wmaker with some icon, and I use glut with full screen. The problem
is, when the window is in fullscreen mode, the icons on my desktop still
visible. Seems like the window is not on top. How can I correct this?
Get latest updates about Open Source Projects, Conferences and News.