diff options
| author | tmk <nobody@nowhere> | 2012-10-21 20:12:11 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2012-10-21 20:12:11 +0900 |
| commit | 454f7bc71657020d0574e849dad92a14e71230c4 (patch) | |
| tree | d068aeed44c1ec03b0d5b1afdb0e667b79eb14fb /common/mousekey.c | |
| parent | 8a81986191ba797a8501cd7b3f8a0e9b58b5b30e (diff) | |
| download | qmk_firmware-454f7bc71657020d0574e849dad92a14e71230c4.tar.gz qmk_firmware-454f7bc71657020d0574e849dad92a14e71230c4.zip | |
Fix mousekey parameter bug
Diffstat (limited to 'common/mousekey.c')
| -rw-r--r-- | common/mousekey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/mousekey.c b/common/mousekey.c index b8af3e59c..d26b26306 100644 --- a/common/mousekey.c +++ b/common/mousekey.c | |||
| @@ -86,7 +86,7 @@ static uint8_t wheel_unit(void) | |||
| 86 | unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed); | 86 | unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed); |
| 87 | } else if (mousekey_repeat == 0) { | 87 | } else if (mousekey_repeat == 0) { |
| 88 | unit = MOUSEKEY_WHEEL_DELTA; | 88 | unit = MOUSEKEY_WHEEL_DELTA; |
| 89 | } else if (mousekey_repeat >= mk_time_to_max) { | 89 | } else if (mousekey_repeat >= mk_wheel_time_to_max) { |
| 90 | unit = MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed; | 90 | unit = MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed; |
| 91 | } else { | 91 | } else { |
| 92 | unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed * mousekey_repeat) / mk_wheel_time_to_max; | 92 | unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed * mousekey_repeat) / mk_wheel_time_to_max; |
