Skip to content

Instantly share code, notes, and snippets.

\def\mySet#1#2{\expandafter\def\csname myDef@#1\endcsname{#2}}
\def\mySetE#1#2{\expandafter\edef\csname myDef@#1\endcsname{#2}}
\def\myGet#1{\csname myDef@#1\endcsname}
@xinhaoyuan
xinhaoyuan / qmk_separate_mk_acc.diff
Created October 7, 2023 18:47
QMK mouse key: separate x/y accelerations
diff --git a/quantum/mousekey.c b/quantum/mousekey.c
index df8aa613be..7e451c517a 100644
--- a/quantum/mousekey.c
+++ b/quantum/mousekey.c
@@ -35,7 +35,8 @@ static inline int8_t times_inv_sqrt2(int8_t x) {
static report_mouse_t mouse_report = {0};
static void mousekey_debug(void);
static uint8_t mousekey_accel = 0;
-static uint8_t mousekey_repeat = 0;
+static uint8_t mousekey_repeat_x = 0;