Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

glut keycodes

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 Crispy   Members   

556
Like
Likes
Like

Posted 07 April 2002 - 09:32 AM

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

#2 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

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.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.