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:
@@ -341,8 +341,8 @@ MouseDevice::_ComputeAcceleration(const mouse_movement& movements,
|
|||||||
// acceleration
|
// acceleration
|
||||||
double acceleration = 1;
|
double acceleration = 1;
|
||||||
if (fSettings.accel.accel_factor) {
|
if (fSettings.accel.accel_factor) {
|
||||||
acceleration = sqrt(deltaX * deltaX + deltaY * deltaY)
|
acceleration = 1 + sqrt(deltaX * deltaX + deltaY * deltaY)
|
||||||
* (1 + fSettings.accel.accel_factor) / 131072.0;
|
* fSettings.accel.accel_factor / 524288.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure that we move at least one pixel (if there was a movement)
|
// make sure that we move at least one pixel (if there was a movement)
|
||||||
|
|||||||
Reference in New Issue
Block a user