mirror of
https://github.com/ClaytonWWilson/miryoku_zmk.git
synced 2025-12-13 17:58:47 +00:00
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
// Copyright 2022 Manna Harbour
|
|
// https://github.com/manna-harbour/miryoku
|
|
|
|
#define U_MOUSE_MOVE_MAX 1250
|
|
#define U_MOUSE_MOVE_EXPONENT 1
|
|
#define U_MOUSE_MOVE_TIME 1500
|
|
#define U_MOUSE_MOVE_DELAY 0
|
|
#define U_MOUSE_SCROLL_MAX 100
|
|
#define U_MOUSE_SCROLL_EXPONENT 1
|
|
#define U_MOUSE_SCROLL_TIME 5000
|
|
#define U_MOUSE_SCROLL_DELAY 0
|
|
|
|
#undef MOVE_UP
|
|
#undef MOVE_DOWN
|
|
#undef MOVE_LEFT
|
|
#undef MOVE_RIGHT
|
|
#undef SCROLL_UP
|
|
#undef SCROLL_DOWN
|
|
#undef SCROLL_LEFT
|
|
#undef SCROLL_RIGHT
|
|
#define MOVE_UP MOVE_VERT(-U_MOUSE_MOVE_MAX)
|
|
#define MOVE_DOWN MOVE_VERT(U_MOUSE_MOVE_MAX)
|
|
#define MOVE_LEFT MOVE_HOR(-U_MOUSE_MOVE_MAX)
|
|
#define MOVE_RIGHT MOVE_HOR(U_MOUSE_MOVE_MAX)
|
|
#define SCROLL_UP SCROLL_VERT(U_MOUSE_SCROLL_MAX)
|
|
#define SCROLL_DOWN SCROLL_VERT(-U_MOUSE_SCROLL_MAX)
|
|
#define SCROLL_LEFT SCROLL_HOR(-U_MOUSE_SCROLL_MAX)
|
|
#define SCROLL_RIGHT SCROLL_HOR(U_MOUSE_SCROLL_MAX)
|
|
|
|
#define U_BTN1 &mkp MB1
|
|
#define U_BTN2 &mkp MB2
|
|
#define U_BTN3 &mkp MB3
|
|
#define U_MS_D &mmv MOVE_DOWN
|
|
#define U_MS_L &mmv MOVE_LEFT
|
|
#define U_MS_R &mmv MOVE_RIGHT
|
|
#define U_MS_U &mmv MOVE_UP
|
|
#define U_WH_D &mwh SCROLL_DOWN
|
|
#define U_WH_L &mwh SCROLL_LEFT
|
|
#define U_WH_R &mwh SCROLL_RIGHT
|
|
#define U_WH_U &mwh SCROLL_UP
|