Archived

This topic is now archived and is closed to further replies.

Crispy

glut keycodes

Recommended Posts

Crispy    556
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites