zmk/config/mouse.dtsi
urob d1dfb03d8e Switch to vanilla ZMK & bump version
Back to vanilla ZMK! Yay!

To get rid of the remaining few custom dependencies I am making a few
additional small changes:

- Drop generic usage page keycodes for now (they didn't work on
  bluetooth for me)
- Stop using display tweaks for Corneish Zen (at this point my display
  is almost dead anyhow & I can just disable the widgets alltogether)
- Refactor repo to move Zephyr to the top-level
- Overload zephyr directly from the parent west manifest to get
  child-node fix
- Use custom justfile recipe to get `west test` running
2024-12-16 23:52:35 -05:00

26 lines
693 B
C++

#define ZMK_MOUSE_DEFAULT_MOVE_VAL 1500 // 600
#define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10
#include <dt-bindings/zmk/pointing.h>
// Config from @caksoylar, defaults in comments
&mmv {
acceleration-exponent = <1>; // 1
time-to-max-speed-ms = <500>; // 300
delay-ms = <0>; // 0
};
&msc {
acceleration-exponent = <1>; // 0
time-to-max-speed-ms = <40>; // 300
delay-ms = <0>; // 0
};
#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 SCRL_UP
#define U_WH_D &msc SCRL_DOWN
#define U_WH_L &msc SCRL_LEFT
#define U_WH_R &msc SCRL_RIGHT