feat(mouse): Initial mouse keys support.
* Add HID report/descriptor for a new report with mouse buttons, and x/y/wheel deltas. * New mouse key press behavior for press/release of mouse keys. * Add constants for HID main item values (e.g. data/array/absolute) * Define and use constants for our HID report IDs.
This commit is contained in:
parent
8776911da5
commit
d7d9eed317
27 changed files with 618 additions and 1 deletions
|
|
@ -18,4 +18,5 @@
|
|||
#include <behaviors/caps_word.dtsi>
|
||||
#include <behaviors/key_repeat.dtsi>
|
||||
#include <behaviors/backlight.dtsi>
|
||||
#include <behaviors/macros.dtsi>
|
||||
#include <behaviors/macros.dtsi>
|
||||
#include <behaviors/mouse_key_press.dtsi>
|
||||
|
|
|
|||
9
app/dts/behaviors/mouse_key_press.dtsi
Normal file
9
app/dts/behaviors/mouse_key_press.dtsi
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ mkp: behavior_mouse_key_press {
|
||||
compatible = "zmk,behavior-mouse-key-press";
|
||||
label = "MOUSE_KEY_PRESS";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
description: Mouse key press/release behavior
|
||||
|
||||
compatible: "zmk,behavior-mouse-key-press"
|
||||
|
||||
include: one_param.yaml
|
||||
Loading…
Add table
Add a link
Reference in a new issue