OT - get mouse position with high precision

Hi !

In my opengl app I use the mouse to let the user look in any direction. I use glutMotionFunc to achieve this. Unfortunately, this gives me only 1-pixel precision. I would like to get the mouse position before it is converted into screen coordinates. Do you know any API able to do this ? What do they use in games ?

Thanks, and sorry for the poorly opengl-related topic,
but an answer to this question might help many opengl programmers !

if you are on a windows systen you could always use the API or DirectInput

for directinput, do you know if there is a tutorial ?

Thanks !

There is an opengl w/direct input using the mouse and keyboard on nehe.gamedev.net.

Thanks !