File tree Expand file tree Collapse file tree
boards/shields/split_ergo40pct Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,20 @@ CONFIG_ZMK_SPLIT_ROLE_CENTRAL=y
33
44# Pointing device configuration
55CONFIG_ZMK_POINTING=y
6- CONFIG_PAW3222 =y
6+ CONFIG_INPUT =y
77
8+ # PAW3222 mouse sensor
9+ CONFIG_PAW3222=y
810# Required for PAW3222
911CONFIG_SENSOR=y
1012CONFIG_SPI=y
11- CONFIG_INPUT=y
1213
14+ # REQUIRED: Enable the acceleration module
15+ CONFIG_ZMK_INPUT_PROCESSOR_ACCELERATION=y
16+
17+ # Choose your level (1 or 2)
18+ CONFIG_INPUT_PROCESSOR_ACCEL_LEVEL_SIMPLE=y # Level 1: Simple
19+ # CONFIG_INPUT_PROCESSOR_ACCEL_LEVEL_STANDARD=y # Level 2: Standard
20+
21+ # Office Presets:
22+ CONFIG_INPUT_PROCESSOR_ACCEL_PRESET_OFFICE_OPTICAL=y # Optical mouse (800 DPI)
Original file line number Diff line number Diff line change 11#include <input/processors.dtsi>
2+ #include <behaviors/input_gestures_accel.dtsi>
23#include <zephyr/dt-bindings/input/input-event-codes.h>
34#include <dt-bindings/zmk/matrix_transform.h>
45#include <dt-bindings/zmk/input_transform.h>
4950 compatible = "zmk,input-listener";
5051 status = "okay";
5152 device = <&trackball>;
52- input-processors = <&zip_xy_transform (INPUT_TRANSFORM_XY_SWAP | INPUT_TRANSFORM_X_INVERT)>;
53+ input-processors = <&pointer_accel>, <& zip_xy_transform (INPUT_TRANSFORM_XY_SWAP | INPUT_TRANSFORM_X_INVERT)>;
5354 };
5455
5556};
5960 transform = <&default_transform>;
6061};
6162
63+ // Track ball settings spi
64+
6265&pinctrl {
6366 spi0_default: spi0_default {
6467 group1 {
109112 status = "okay";
110113 device = <&trackball>;
111114};
115+
116+ // pointer acceleration
117+
118+ &pointer_accel {
119+ status = "okay";
120+ compatible = "zmk,input-processor-acceleration";
121+ input-type = <INPUT_EV_REL>;
122+ codes = <INPUT_REL_X INPUT_REL_Y>;
123+
124+ };
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ manifest:
99 remote : zmkfirmware
1010 revision : v0.3.0
1111 import : app/west.yml
12+ - name : zmk-pointing-acceleration-alpha
13+ remote : nuovotaka
14+ revision : main
1215 - name : zmk-driver-paw3222-alpha
1316 remote : nuovotaka
1417 revision : main
You can’t perform that action at this time.
0 commit comments