if the acceleration factor was more than 0, the mouse could only be moved every other pixel. Fixed (thanks to Jonathan Thompson for his help finding this). Axel, wouldn't it make more sense to move the acceleration computation to the input server, so it doesn't have to be implemented by every input device ?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18594 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -337,7 +337,7 @@ MouseDevice::_ComputeAcceleration(const mouse_movement& movements,
|
||||
// acceleration
|
||||
double acceleration = 1;
|
||||
if (fSettings.accel.accel_factor) {
|
||||
acceleration = 1 + sqrt(deltaX * deltaX + deltaY * deltaY)
|
||||
acceleration = sqrt(deltaX * deltaX + deltaY * deltaY)
|
||||
* fSettings.accel.accel_factor / 524288.0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user