i'm using glut and how i can identity the key "ctrl" ?
i'm using glut and how i can identity the key "ctrl" ?
Code:/* executed when a special key is pressed */ void keyboardSpecialDown(int k, int x, int y) { } /* executed when a special key is released */ void keyboardSpecialUp(int k, int x, int y) { }
more here:
http://jeff.bagu.org/downloads/glut/EmptyGlut.cpp
i'm question about the code of control key.
the callback i know how to work with them
But the "Ctrl" key _IS_ a special key, so should be possible to capture with that callback.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
i will explain better, for up key the code is GLUT_KEY_UP and for ctrl is what?
I don't actually see a control key in glut.h. Just make your app print out whatever the call back receives and see if it's supported.