GLUT Fun - keyboard

Started by
1 comment, last by Jacky_J 21 years, 4 months ago
Could someone please direct me in the direction of getting Glut to have multiple keys pressed at once. or have Glut''s createwindow function return a Window Handle so i can use directinput whatever it''s all good
Advertisement
When I asked a question similar to this someone asked why I would use somthing like openGL which is cross-platform with direct-input which is MS only! I thought it a good point and started looking into SDL.

From what I understand, SDL has better input functions than GLUT.

If you''re interested try www.libsdl.org
glut can handle multiple keypresses (if your keyboard can)

like other api''s do the following
*turn off keyrepeat glutIgnoreKeyR..
*then in the keydown callback (which gets called when a key is pressed) store the info that key.. has been pressed
*in the keyup callback store the info key .. is NOT pressed.

this way u can check if multiple keyas are pressed

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html

This topic is closed to new replies.

Advertisement