mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
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:
parent
8ebbfab333
commit
74ef162141
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user