Slowed down mouse acceleration quite a bit, but also made sure the minimal

acceleration factor is 1 which wasn't the case before.
The defaults now feel pretty good over here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17884 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-06-20 17:07:25 +00:00
parent 8ebbfab333
commit 74ef162141
1 changed files with 2 additions and 2 deletions

View File

@ -341,8 +341,8 @@ MouseDevice::_ComputeAcceleration(const mouse_movement& movements,
// acceleration
double acceleration = 1;
if (fSettings.accel.accel_factor) {
acceleration = sqrt(deltaX * deltaX + deltaY * deltaY)
* (1 + fSettings.accel.accel_factor) / 131072.0;
acceleration = 1 + sqrt(deltaX * deltaX + deltaY * deltaY)
* fSettings.accel.accel_factor / 524288.0;
}
// make sure that we move at least one pixel (if there was a movement)