From 2c034830224487fa229670186e3cbeefffa6523e Mon Sep 17 00:00:00 2001 From: Deividas Petraitis Date: Thu, 29 Feb 2024 16:28:35 +0200 Subject: [PATCH] sync with latest mouse branch --- .github/workflows/build.yml | 2 +- build.yaml | 6 ++++-- config/boards/shields/think_corne/think_corne.dtsi | 8 +++----- .../boards/shields/think_corne/think_corne_right.overlay | 6 +++++- config/includes/mouse_keys.dtsi | 1 + config/includes/mouse_tp.dtsi | 3 ++- config/think_corne.conf | 2 +- config/think_corne_left.conf | 2 +- config/think_corne_right.conf | 2 +- 9 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8735e7b..d74fb89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,4 +2,4 @@ on: [push, pull_request, workflow_dispatch] jobs: build: - uses: petejohanson/zmk/.github/workflows/build-user-config.yml@core/zephyr-3.5-update + uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main diff --git a/build.yaml b/build.yaml index 701938e..dfcd03c 100644 --- a/build.yaml +++ b/build.yaml @@ -19,6 +19,8 @@ --- include: - board: nice_nano_v2 - shield: corne_left + shield: think_corne_left - board: nice_nano_v2 - shield: corne_right + shield: think_corne_right + - board: nice_nano_v2 + shield: settings_reset diff --git a/config/boards/shields/think_corne/think_corne.dtsi b/config/boards/shields/think_corne/think_corne.dtsi index 121a888..fb9bf82 100644 --- a/config/boards/shields/think_corne/think_corne.dtsi +++ b/config/boards/shields/think_corne/think_corne.dtsi @@ -254,16 +254,14 @@ nice_view_spi: &spi0 { #endif }; - input_config: input_config { - compatible = "zmk,input-configs"; + mouse_ps2_input_listener: mouse_ps2_input_listener { + compatible = "zmk,input-listener"; status = "disabled"; - mouse_ps2_config: mouse_ps2_config { - device = <&mouse_ps2>; + device = <&mouse_ps2>; // Some of the available settings depend on the keymap. So they // are adjusted in... // ../../../includes/trackpoint.dtsi - }; }; }; diff --git a/config/boards/shields/think_corne/think_corne_right.overlay b/config/boards/shields/think_corne/think_corne_right.overlay index acf7655..c63cff9 100644 --- a/config/boards/shields/think_corne/think_corne_right.overlay +++ b/config/boards/shields/think_corne/think_corne_right.overlay @@ -59,8 +59,12 @@ #endif }; -&input_config { +&mouse_ps2_input_listener { status = "okay"; + + // Some of the available settings depend on the keymap. So they + // are adjusted in... + // ../../../includes/trackpoint.dsi }; // Adjust GPIO interrupt priority to the highest level. diff --git a/config/includes/mouse_keys.dtsi b/config/includes/mouse_keys.dtsi index aa98ed4..0830097 100644 --- a/config/includes/mouse_keys.dtsi +++ b/config/includes/mouse_keys.dtsi @@ -1,5 +1,6 @@ #ifdef HAS_MOUSE_KEYS #include + #include #endif diff --git a/config/includes/mouse_tp.dtsi b/config/includes/mouse_tp.dtsi index 52856ca..9d6c9df 100644 --- a/config/includes/mouse_tp.dtsi +++ b/config/includes/mouse_tp.dtsi @@ -1,5 +1,6 @@ #ifdef HAS_MOUSE_TP #include + #include /* * Key Behaviors to adjust settings @@ -120,7 +121,7 @@ * Input Config */ - &mouse_ps2_config { + &mouse_ps2_input_listener { xy-swap; x-invert; y-invert; diff --git a/config/think_corne.conf b/config/think_corne.conf index 6f37b0f..2fcc6f8 100644 --- a/config/think_corne.conf +++ b/config/think_corne.conf @@ -1,6 +1,6 @@ # Uncomment the following lines to enable the Corne RGB Underglow CONFIG_ZMK_RGB_UNDERGLOW=n -CONFIG_WS2812_STRIP=y +CONFIG_WS2812_STRIP=n # Uncomment the following line to enable the Corne OLED Display # CONFIG_ZMK_DISPLAY=y diff --git a/config/think_corne_left.conf b/config/think_corne_left.conf index ae8eb3a..a369b05 100644 --- a/config/think_corne_left.conf +++ b/config/think_corne_left.conf @@ -2,4 +2,4 @@ # Logging # -CONFIG_ZMK_USB_LOGGING=n +CONFIG_ZMK_USB_LOGGING=y diff --git a/config/think_corne_right.conf b/config/think_corne_right.conf index ae8eb3a..a369b05 100644 --- a/config/think_corne_right.conf +++ b/config/think_corne_right.conf @@ -2,4 +2,4 @@ # Logging # -CONFIG_ZMK_USB_LOGGING=n +CONFIG_ZMK_USB_LOGGING=y