aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/common/mousekey.h
diff options
context:
space:
mode:
authorfrancislan <francis.lan16@gmail.com>2020-03-13 09:49:44 -0700
committerGitHub <noreply@github.com>2020-03-13 12:49:44 -0400
commit3cd2a27ac0f963bc2023c3004f6f8eff0eb62a81 (patch)
treecb50af68f1c25943003ed12446822c599e607fdc /tmk_core/common/mousekey.h
parent28d94b72484967f12b521e87b2745bc24d792471 (diff)
downloadfirmware-3cd2a27ac0f963bc2023c3004f6f8eff0eb62a81.tar.gz
firmware-3cd2a27ac0f963bc2023c3004f6f8eff0eb62a81.tar.bz2
firmware-3cd2a27ac0f963bc2023c3004f6f8eff0eb62a81.zip
Decouple mouse cursor and mouse wheel in accelerated mode (#6685)
* Decouples mouse cursor and mouse wheel movements in accelerated mode. * Fixed comment indentation. * Updated docs Co-authored-by: Francis LAN <francislan@google.com>
Diffstat (limited to 'tmk_core/common/mousekey.h')
-rw-r--r--tmk_core/common/mousekey.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/common/mousekey.h b/tmk_core/common/mousekey.h
index 48946987c..05e453823 100644
--- a/tmk_core/common/mousekey.h
+++ b/tmk_core/common/mousekey.h
@@ -55,6 +55,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
# ifndef MOUSEKEY_TIME_TO_MAX
# define MOUSEKEY_TIME_TO_MAX 20
# endif
+# ifndef MOUSEKEY_WHEEL_DELAY
+# define MOUSEKEY_WHEEL_DELAY 300
+# endif
+# ifndef MOUSEKEY_WHEEL_INTERVAL
+# define MOUSEKEY_WHEEL_INTERVAL 100
+# endif
# ifndef MOUSEKEY_WHEEL_MAX_SPEED
# define MOUSEKEY_WHEEL_MAX_SPEED 8
# endif