From 74ef1621419da98237fe969f72de782629d030f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 20 Jun 2006 17:07:25 +0000 Subject: [PATCH] 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 --- src/add-ons/input_server/devices/mouse/MouseInputDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/input_server/devices/mouse/MouseInputDevice.cpp b/src/add-ons/input_server/devices/mouse/MouseInputDevice.cpp index 755a599bdc..eb3496fbb9 100644 --- a/src/add-ons/input_server/devices/mouse/MouseInputDevice.cpp +++ b/src/add-ons/input_server/devices/mouse/MouseInputDevice.cpp @@ -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)