Skip to content

Commit 97796c7

Browse files
authored
Merge pull request #23 from nuovotaka/advanced
Advanced
2 parents b3c1a8c + 9d482ac commit 97796c7

3 files changed

Lines changed: 29 additions & 3 deletions

File tree

boards/shields/split_ergo40pct/split_ergo40pct_right.conf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@ CONFIG_ZMK_SPLIT_ROLE_CENTRAL=y
33

44
# Pointing device configuration
55
CONFIG_ZMK_POINTING=y
6-
CONFIG_PAW3222=y
6+
CONFIG_INPUT=y
77

8+
# PAW3222 mouse sensor
9+
CONFIG_PAW3222=y
810
# Required for PAW3222
911
CONFIG_SENSOR=y
1012
CONFIG_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)

boards/shields/split_ergo40pct/split_ergo40pct_right.overlay

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
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>
@@ -49,7 +50,7 @@
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
};
@@ -59,6 +60,8 @@
5960
transform = <&default_transform>;
6061
};
6162

63+
// Track ball settings spi
64+
6265
&pinctrl {
6366
spi0_default: spi0_default {
6467
group1 {
@@ -109,3 +112,13 @@
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+
};

config/west.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)