forked from urob/zmk-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
19 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,26 @@ | ||
#define ZMK_MOUSE_DEFAULT_MOVE_VAL 1500 // 600 | ||
#define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10 | ||
|
||
#include <dt-bindings/zmk/mouse.h> | ||
|
||
&mmv { | ||
acceleration-exponent = <1>; // 1 | ||
time-to-max-speed-ms = <1500>; // 40 | ||
time-to-max-speed-ms = <500>; // 40 | ||
delay-ms = <0>; // 0 | ||
}; | ||
|
||
&msc { | ||
acceleration-exponent = <1>; // 0 | ||
time-to-max-speed-ms = <5000>; // 40 | ||
time-to-max-speed-ms = <40>; // 500 | ||
delay-ms = <0>; // 10 | ||
}; | ||
|
||
#define U_MOUSE_MOVE_MAX 1250 // 600 | ||
#define U_MOUSE_SCROLL_MAX 100 // 10 | ||
|
||
#undef MOVE_UP | ||
#undef MOVE_DOWN | ||
#undef MOVE_LEFT | ||
#undef MOVE_RIGHT | ||
#define MOVE_UP MOVE_Y(-U_MOUSE_MOVE_MAX) | ||
#define MOVE_DOWN MOVE_Y(U_MOUSE_MOVE_MAX) | ||
#define MOVE_LEFT MOVE_X(-U_MOUSE_MOVE_MAX) | ||
#define MOVE_RIGHT MOVE_X(U_MOUSE_MOVE_MAX) | ||
|
||
#undef SCROLL_UP | ||
#undef SCROLL_DOWN | ||
#undef SCROLL_LEFT | ||
#undef SCROLL_RIGHT | ||
#define SCROLL_UP SCRL_Y(U_MOUSE_SCROLL_MAX) | ||
#define SCROLL_DOWN SCRL_Y(-U_MOUSE_SCROLL_MAX) | ||
#define SCROLL_LEFT SCRL_X(-U_MOUSE_SCROLL_MAX) | ||
#define SCROLL_RIGHT SCRL_X(U_MOUSE_SCROLL_MAX) | ||
|
||
#define U_BTN1 &mkp MB1 | ||
#define U_BTN2 &mkp MB2 | ||
#define U_BTN3 &mkp MB3 | ||
#define U_MS_U &mmv MOVE_UP | ||
#define U_MS_D &mmv MOVE_DOWN | ||
#define U_MS_L &mmv MOVE_LEFT | ||
#define U_MS_R &mmv MOVE_RIGHT | ||
#define U_WH_U &msc SCROLL_UP | ||
#define U_WH_D &msc SCROLL_DOWN | ||
#define U_WH_L &msc SCROLL_LEFT | ||
#define U_WH_R &msc SCROLL_RIGHT | ||
#define U_WH_U &msc SCRL_UP | ||
#define U_WH_D &msc SCRL_DOWN | ||
#define U_WH_L &msc SCRL_LEFT | ||
#define U_WH_R &msc SCRL_RIGHT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
CONFIG_ZMK_KEYBOARD_NAME="Planck Rev6" | ||
|
||
# Mouse config, requires PR #778 | ||
CONFIG_ZMK_MOUSE=y | ||
CONFIG_ZMK_MOUSE_TICK_DURATION=8 | ||
|
||
# Combo config, automated by build script | ||
CONFIG_ZMK_COMBO_MAX_COMBOS_PER_KEY=6 | ||
CONFIG_ZMK_COMBO_MAX_KEYS_PER_COMBO=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters