OpenArena Message Boards

OpenArena => Technical Snafus => Topic started by: dash9 on December 27, 2008, 01:10:20 AM



Title: confusing message about mouse acceleration
Post by: dash9 on December 27, 2008, 01:10:20 AM
While downloading a map from a server I noticed this message in the console:
restoring mouse acceleration to: 1.500000

I checked cl_mouseAccel and it's 0.4, so what exactly was restored there?
Happens on a Mac OS X 10.5.4, did not check on Linux yet.


Title: Re: confusing message about mouse acceleration
Post by: damocles on December 27, 2008, 01:47:24 AM
If I'm reading the source correctly, I think this is OS X's system mouse acceleration, not the engine's.

It's in sdl_input.c, IN_DeactivateMouse( void ).


I don't know if "acceleration" here is supposed to mean:

  • A simple number (like sens)
  • A more complicated number (man xset: "go 'acceleration' times as fast when it travels more than 'threshold' pixels in a short time")
  • Something else like this (certain Windows mouse drivers -- or look at the complaints when you search "os x mouse acceleration" (not in quotes))


Title: Re: confusing message about mouse acceleration
Post by: andrewj on December 27, 2008, 04:41:12 AM
If I'm reading the source correctly, I think this is OS X's system mouse acceleration, not the engine's.
Yes I think you are right, and there should be a message when the mouse is initialized too ("previous mouse acceleration: XXX").

I presume the engine does this to get "raw" mouse movements (unaffected by the user's speed setting in the OS's control panel).


Title: Re: confusing message about mouse acceleration
Post by: dash9 on December 29, 2008, 04:14:49 PM
If I'm reading the source correctly, I think this is OS X's system mouse acceleration, not the engine's.
Yes I think you are right, and there should be a message when the mouse is initialized too ("previous mouse acceleration: XXX").

I presume the engine does this to get "raw" mouse movements (unaffected by the user's speed setting in the OS's control panel).
The "previous mouse acceleration" and "restoring mouse acceleration" messages appear very often, and even more weirdness, they show the same value.. !