mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-19 20:45:18 -05:00
fix(pointing): Complete header rename missed in refactor (#2702)
* Update a few mouse.h -> pointing.h missed refactors.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#include <behaviors.dtsi>
|
#include <behaviors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
keymap {
|
keymap {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ CONFIG_ZMK_BLE=n
|
|||||||
CONFIG_LOG=y
|
CONFIG_LOG=y
|
||||||
CONFIG_LOG_BACKEND_SHOW_COLOR=n
|
CONFIG_LOG_BACKEND_SHOW_COLOR=n
|
||||||
CONFIG_ZMK_LOG_LEVEL_DBG=y
|
CONFIG_ZMK_LOG_LEVEL_DBG=y
|
||||||
CONFIG_ZMK_MOUSE=y
|
CONFIG_ZMK_POINTING=y
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include <behaviors.dtsi>
|
#include <behaviors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
keymap {
|
keymap {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <behaviors/mouse_move.dtsi>
|
#include <behaviors/mouse_move.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
keymap {
|
keymap {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <behaviors/mouse_move.dtsi>
|
#include <behaviors/mouse_move.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
keymap {
|
keymap {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <behaviors/mouse_move.dtsi>
|
#include <behaviors/mouse_move.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
keymap {
|
keymap {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <input/processors.dtsi>
|
#include <input/processors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
&mmv_input_listener {
|
&mmv_input_listener {
|
||||||
input-processors = <&zip_xy_scaler 5 3>;
|
input-processors = <&zip_xy_scaler 5 3>;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <behaviors.dtsi>
|
#include <behaviors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
#include <dt-bindings/zmk/input_transform.h>
|
#include <dt-bindings/zmk/input_transform.h>
|
||||||
|
|
||||||
&mmv_input_listener {
|
&mmv_input_listener {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include <behaviors.dtsi>
|
#include <behaviors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
&mmv_input_listener {
|
&mmv_input_listener {
|
||||||
input-processors = <&zip_xy_swap_mapper>;
|
input-processors = <&zip_xy_swap_mapper>;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <input/processors.dtsi>
|
#include <input/processors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
&mmv_input_listener {
|
&mmv_input_listener {
|
||||||
input-processors = <&zip_temp_layer 1 500>;
|
input-processors = <&zip_temp_layer 1 500>;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <input/processors.dtsi>
|
#include <input/processors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
&mmv_input_listener {
|
&mmv_input_listener {
|
||||||
input-processors = <&auto_mouse_layer 1 0>;
|
input-processors = <&auto_mouse_layer 1 0>;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <input/processors.dtsi>
|
#include <input/processors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
&mmv_input_listener {
|
&mmv_input_listener {
|
||||||
input-processors = <&auto_mouse_layer 1 0>;
|
input-processors = <&auto_mouse_layer 1 0>;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <input/processors.dtsi>
|
#include <input/processors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/kscan_mock.h>
|
#include <dt-bindings/zmk/kscan_mock.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
|
|
||||||
&mmv_input_listener {
|
&mmv_input_listener {
|
||||||
input-processors = <&auto_mouse_layer 1 500>;
|
input-processors = <&auto_mouse_layer 1 500>;
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ CONFIG_ZMK_POINTING=y
|
|||||||
## Mouse Emulation Defines
|
## Mouse Emulation Defines
|
||||||
|
|
||||||
To make it easier to encode the HID mouse button and move/scroll speed numeric values, include
|
To make it easier to encode the HID mouse button and move/scroll speed numeric values, include
|
||||||
the [`dt-bindings/zmk/mouse.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/mouse.h) header
|
the [`dt-bindings/zmk/pointing.h`](https://github.com/zmkfirmware/zmk/blob/main/app/include/dt-bindings/zmk/pointing.h) header
|
||||||
provided by ZMK near the top:
|
provided by ZMK near the top:
|
||||||
|
|
||||||
```
|
```
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
```
|
```
|
||||||
|
|
||||||
Should you wish to override the default movement or scrolling max velocities, you can define the defaults before including the header, e.g.:
|
Should you wish to override the default movement or scrolling max velocities, you can define the defaults before including the header, e.g.:
|
||||||
@@ -38,7 +38,7 @@ Should you wish to override the default movement or scrolling max velocities, yo
|
|||||||
#define ZMK_POINTING_DEFAULT_MOVE_VAL 1500 // default: 600
|
#define ZMK_POINTING_DEFAULT_MOVE_VAL 1500 // default: 600
|
||||||
#define ZMK_POINTING_DEFAULT_SCRL_VAL 20 // default: 10
|
#define ZMK_POINTING_DEFAULT_SCRL_VAL 20 // default: 10
|
||||||
|
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/pointing.h>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Mouse Button Press
|
## Mouse Button Press
|
||||||
|
|||||||
Reference in New Issue
Block a user