Sign in to follow this  
doutmost

How can I check Mouse position using opengl under Linux ?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this