Archived

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

pr0teus

Keyboard/Mouse with GLUT

Recommended Posts

hey, Can somebody tell me if there are functions in GLUT to either a.) Tell me the position of the mouse (without a button being pressed) or b.) How to have multiple keys (ie: Up arrow and left arrow, so I can run and turn at the same time)? Thanks, Ben

Share this post


Link to post
Share on other sites
u should have the man pages with your distribution of glut check there for better descriptions
1/ glutPassiveMotionFunc
2/ a few ways for this
glutIgnoreKeyRepeat, glutKeyboardUpFunc etc

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
Personally I would use DirectInput over GLUT functions for anytype of external input. Its more built for this kind of thing.

Lee

Share this post


Link to post
Share on other sites
I think that''s kinda missing the point of using GLUT, isn''t it (platform independence)

------------------------------------------------------
"You need a weapon. Look around you... can you construct some sort of rudimentary lathe?"
- Guy Fleegman, Security Officer, NSEA Protector

Share this post


Link to post
Share on other sites