Hello!
I’m making program where user moves object with mouse.
Code:
int main(int argc, char **argv) {
…
while (SDL_PollEvent(&event)) {
switch(event.type) {
case SDL_MOUSEMOTION:
handleMouseMotion( event.motion.xrel, event.motion.yrel );
break;
…
}
void handleMouseMotion(int xrel, int yrel) {
cam_rot -= xrel/2;
lookupdown += yrel/2;
}
The problem is there that on different computers mouse sensitivity is
different… for one computer normal, for another to slow or to fast…
Does SDL_MOUSEMOTION use windows mouse settings?
If yes then how i can make my own sensitivity?
Best, iERiS_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com