Post by Bohus KralPlease tell me how to set mouse sensitivity in my c++ opengl program
independent on windows mouse sensitivity.
You could draw your own pointer and keep track of delta changes of the real
pointer. Something like this:
int my_x = 0, my_y = 0;
int last_x = 0, last_y = 0;
bool warped = false;
void motionCallback( int x, int y ) {
if( warped == 1 ) { warped = 0; return; }
warped = 1
glutWarpPointer( width / 2, height / 2 )
my_x = (x - lastX) / 10
lastX = (width / 2) - (x - lastX)
lastY = (height / 2) - (y - lastY)
glutPostRedisplay
}
The 'warped' boolean is used to avoid infinite recursion since
glutWarpPointer generates a mouse event itself.
-- Mike