From 6b40bfda53571f7a960ccc448aa87f29da7496ac Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 9 Dec 2024 17:45:41 -0700 Subject: feat(mouse): Add mouse move and scroll support (#2477) * feat(mouse): Add mouse move and scroll support * Use Zephyr input subsystem for all pointers. * Input processors for modifying events, e.g. scaling, swapping codes, temporary (mouse) layers, etc. * Mouse move/scroll behaviors. * Infrastructure in place for physical pointer input devices. * feat: Add input split support. * docs: Add initial pointer docs. --------- Co-authored-by: Cem Aksoylar Co-authored-by: Alexander Krikun Co-authored-by: Robert U Co-authored-by: Shawn Meier Co-authored-by: Chris Andreae Co-authored-by: Anant Thazhemadam <47104651+thazhemadam@users.noreply.github.com> Co-authored-by: Erik Tollerud Co-authored-by: Nicolas Munnich <98408764+Nick-Munnich@users.noreply.github.com> --- app/tests/pointing/mkp/native_posix_64.keymap | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 app/tests/pointing/mkp/native_posix_64.keymap (limited to 'app/tests/pointing/mkp/native_posix_64.keymap') diff --git a/app/tests/pointing/mkp/native_posix_64.keymap b/app/tests/pointing/mkp/native_posix_64.keymap new file mode 100644 index 0000000000..8e3071d431 --- /dev/null +++ b/app/tests/pointing/mkp/native_posix_64.keymap @@ -0,0 +1,27 @@ +#include +#include +#include +#include + +/ { + keymap { + compatible = "zmk,keymap"; + + default_layer { + bindings = < + &mkp LCLK &none + &none &mkp RCLK + >; + }; + }; +}; + + +&kscan { + events = < + ZMK_MOCK_PRESS (0,0,100) + ZMK_MOCK_PRESS (1,1,100) + ZMK_MOCK_RELEASE(1,1, 10) + ZMK_MOCK_RELEASE(0,0, 10) + >; +}; -- cgit v1.2.3