From e451c059296a4c9af7a476577fee64afb9965bca Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 16 Oct 2012 11:20:49 +0900 Subject: Fix commands --- common/mousekey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/mousekey.c') diff --git a/common/mousekey.c b/common/mousekey.c index 353890a168..99e6d34ffe 100644 --- a/common/mousekey.c +++ b/common/mousekey.c @@ -103,7 +103,7 @@ static uint8_t wheel_unit(void) if (mousekey_repeat > mk_time_to_max) { unit = MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed; } else { - unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed * mousekey_repeat) / mk_time_to_max; + unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed * mousekey_repeat) / mk_wheel_time_to_max; } if (unit == 0) return 1; return (unit > MOUSEKEY_WHEEL_MAX ? MOUSEKEY_WHEEL_MAX : unit); -- cgit v1.2.3