Jump to content
  • Advertisement
Sign in to follow this  
doutmost

How can I check Mouse position using opengl under Linux ?

This topic is 5056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey, is there anyone here know how to check mouse position using opengl or others under LINUX ? I only found how to do it under Windows, but not under Linux. :( thanks for any suggestion.

Share this post


Link to post
Share on other sites
Advertisement
the mouse does not have a position in GLUT ... you are always given moose deltas - telling you how much it has moved, not where it is ... because there is no inheirent relationship between mouse deltas and screen position, that is up to you to track however you want.

Share this post


Link to post
Share on other sites
Many of the GLUT callbacks give you the current mouse position. You could, for example, check out the following ones:
link
link
Which one you'll need depends on exactly what you want to do.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!