From a05e5b55547af1afccc4468f0452eca654df3ed4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E3=83=95=E3=82=A3=E3=83=AB=E3=82=BF=E3=83=BC=E3=83=9A?=
=?UTF-8?q?=E3=83=BC=E3=83=91=E3=83=BC?=
<76888457+filterpaper@users.noreply.github.com>
Date: Tue, 11 Jul 2023 01:57:08 +0800
Subject: [PATCH] Add MOUSEKEY_WHEEL_DELTA documentation (#21493)
---
docs/feature_mouse_keys.md | 1 +
quantum/mousekey.h | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/docs/feature_mouse_keys.md b/docs/feature_mouse_keys.md
index 480fa0e334..42448325c9 100644
--- a/docs/feature_mouse_keys.md
+++ b/docs/feature_mouse_keys.md
@@ -67,6 +67,7 @@ This is the default mode. You can adjust the cursor and scrolling acceleration u
|`MOUSEKEY_TIME_TO_MAX` |30 |Time until maximum cursor speed is reached |
|`MOUSEKEY_WHEEL_DELAY` |10 |Delay between pressing a wheel key and wheel movement |
|`MOUSEKEY_WHEEL_INTERVAL` |80 |Time between wheel movements |
+|`MOUSEKEY_WHEEL_DELTA` |1 |Wheel movement step size |
|`MOUSEKEY_WHEEL_MAX_SPEED` |8 |Maximum number of scroll steps per scroll action |
|`MOUSEKEY_WHEEL_TIME_TO_MAX`|40 |Time until maximum scroll speed is reached |
diff --git a/quantum/mousekey.h b/quantum/mousekey.h
index e968e000c0..73380b743a 100644
--- a/quantum/mousekey.h
+++ b/quantum/mousekey.h
@@ -44,9 +44,6 @@ along with this program. If not, see .
# define MOUSEKEY_MOVE_DELTA 8
# endif
# endif
-# ifndef MOUSEKEY_WHEEL_DELTA
-# define MOUSEKEY_WHEEL_DELTA 1
-# endif
# ifndef MOUSEKEY_DELAY
# if defined(MK_KINETIC_SPEED)
# define MOUSEKEY_DELAY 5
@@ -85,6 +82,9 @@ along with this program. If not, see .
# ifndef MOUSEKEY_WHEEL_INTERVAL
# define MOUSEKEY_WHEEL_INTERVAL 80
# endif
+# ifndef MOUSEKEY_WHEEL_DELTA
+# define MOUSEKEY_WHEEL_DELTA 1
+# endif
# ifndef MOUSEKEY_WHEEL_MAX_SPEED
# define MOUSEKEY_WHEEL_MAX_SPEED 8
# endif