How can I check Mouse position using opengl under Linux ?

Started by
4 comments, last by TomasH 19 years, 8 months ago
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.
Advertisement
So how do you create your window (etc.) - GLUT, GLFW, SDL or what?
with GLUT to create my window.
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.
then, how can I get how much mouse has moved? any function?

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.

This topic is closed to new replies.

Advertisement