aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/tests/pointing/mkp/native_posix_64.keymap
diff options
context:
space:
mode:
authorPete Johanson <[email protected]>2024-12-09 17:45:41 -0700
committerGitHub <[email protected]>2024-12-09 19:45:41 -0500
commit6b40bfda53571f7a960ccc448aa87f29da7496ac (patch)
tree01aac8188ba01c796c58e11c5b5951bdd9485b97 /app/tests/pointing/mkp/native_posix_64.keymap
parent7e8c542c94908ac011ec7272a5f8ab10d2102632 (diff)
downloadzmk-6b40bfda53571f7a960ccc448aa87f29da7496ac.tar.gz
zmk-6b40bfda53571f7a960ccc448aa87f29da7496ac.zip
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 <[email protected]> Co-authored-by: Alexander Krikun <[email protected]> Co-authored-by: Robert U <[email protected]> Co-authored-by: Shawn Meier <[email protected]> Co-authored-by: Chris Andreae <[email protected]> Co-authored-by: Anant Thazhemadam <[email protected]> Co-authored-by: Erik Tollerud <[email protected]> Co-authored-by: Nicolas Munnich <[email protected]>
Diffstat (limited to 'app/tests/pointing/mkp/native_posix_64.keymap')
-rw-r--r--app/tests/pointing/mkp/native_posix_64.keymap27
1 files changed, 27 insertions, 0 deletions
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 <behaviors.dtsi>
+#include <dt-bindings/zmk/keys.h>
+#include <dt-bindings/zmk/kscan_mock.h>
+#include <dt-bindings/zmk/mouse.h>
+
+/ {
+ 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)
+ >;
+};