forked from kofal.net/zmk
* 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>
33 lines
868 B
Plaintext
33 lines
868 B
Plaintext
/*
|
|
* Copyright (c) 2024 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
|
|
|
/ {
|
|
/omit-if-no-ref/ zip_x_scaler: zip_x_scaler {
|
|
compatible = "zmk,input-processor-scaler";
|
|
#input-processor-cells = <2>;
|
|
type = <INPUT_EV_REL>;
|
|
codes = <INPUT_REL_X>;
|
|
track-remainders;
|
|
};
|
|
|
|
/omit-if-no-ref/ zip_y_scaler: zip_y_scaler {
|
|
compatible = "zmk,input-processor-scaler";
|
|
#input-processor-cells = <2>;
|
|
type = <INPUT_EV_REL>;
|
|
codes = <INPUT_REL_Y>;
|
|
track-remainders;
|
|
};
|
|
|
|
/omit-if-no-ref/ zip_xy_scaler: zip_xy_scaler {
|
|
compatible = "zmk,input-processor-scaler";
|
|
#input-processor-cells = <2>;
|
|
type = <INPUT_EV_REL>;
|
|
codes = <INPUT_REL_X INPUT_REL_Y>;
|
|
track-remainders;
|
|
};
|
|
}; |