mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
* 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 <caksoylar@users.noreply.github.com>
Co-authored-by: Alexander Krikun <krikun98@gmail.com>
Co-authored-by: Robert U <urob@users.noreply.github.com>
Co-authored-by: Shawn Meier <ftc@users.noreply.github.com>
Co-authored-by: Chris Andreae <chris@andreae.gen.nz>
Co-authored-by: Anant Thazhemadam <47104651+thazhemadam@users.noreply.github.com>
Co-authored-by: Erik Tollerud <erik.tollerud@gmail.com>
Co-authored-by: Nicolas Munnich <98408764+Nick-Munnich@users.noreply.github.com>
26 lines
605 B
Plaintext
26 lines
605 B
Plaintext
/*
|
|
* Copyright (c) 2024 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ mmv: mouse_move {
|
|
compatible = "zmk,behavior-input-two-axis";
|
|
#binding-cells = <1>;
|
|
x-input-code = <INPUT_REL_X>;
|
|
y-input-code = <INPUT_REL_Y>;
|
|
time-to-max-speed-ms = <300>;
|
|
acceleration-exponent = <1>;
|
|
};
|
|
};
|
|
|
|
mmv_input_listener: mmv_input_listener {
|
|
compatible = "zmk,input-listener";
|
|
device = <&mmv>;
|
|
};
|
|
};
|