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
Started by Crispy, Apr 07 2002 09:32 AM
1 reply to this topic
#1 Members - Reputation: 556
Posted 07 April 2002 - 09:32 AM
Sponsor:
#2 Anonymous Poster_Anonymous Poster_* Guests - Reputation:
Posted 07 April 2002 - 11:51 AM
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.






