glutKeyboardFunc()
doesn''t seem to recognize neither the standard Windows keycodes (which is normal) nor some of the standard ASCII character set keycodes. in particular, what i''m looking for are the PgUp and PgDown keys (codes 11 and ??). similarly, any calls to GLUT_KEY_LEFT or the like don''t seem to be working. i''m a glut first-timer, so maybe it''s something I did/didn''t do. anyway - can anyone shed some light on the problem?
thanks in advance,
crispy
glut keycodes
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
April 07, 2002 05:51 PM
You need to use the glutSpecialFunc. Check for GLUT_KEY_PAGE_UP or GLUT_KEY_PAGE_DOWN. To learn more about GLUT I would recommend http://www.lighthouse3d.com/opengl/glut . There are some real good tuts there.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement