Skip to content

Commit cc9e67a

Browse files
committed
Revert "Changes to support tap layer. (#7)"
This reverts commit e35f32a.
1 parent e35f32a commit cc9e67a

File tree

5 files changed

+5
-63
lines changed

5 files changed

+5
-63
lines changed

boards/shields/toucan/toucan.dtsi

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <dt-bindings/zmk/input_transform.h>
33
#include <dt-bindings/zmk/matrix_transform.h>
44
#include <physical_layouts.dtsi>
5-
#include <dt-bindings/input/input-event-codes.h>
5+
66

77
/ {
88
chosen {
@@ -107,10 +107,7 @@
107107
compatible = "zmk,input-listener";
108108
status = "disabled";
109109
device = <&glidepoint_split>;
110-
input-processors = <
111-
&zip_xy_scaler 1 4 // 2x mult seems too fast, so lowering to 0.25x
112-
>;
113-
110+
input-processors = <&zip_xy_scaler 250 100>;
114111
scroller {
115112
layers = <1 2>;
116113
input-processors = <
@@ -119,23 +116,5 @@
119116
&zip_scroll_transform INPUT_TRANSFORM_X_INVERT
120117
>;
121118
};
122-
123-
base {
124-
layers = <0>;
125-
input-processors = <
126-
&touch_processor
127-
>;
128-
};
129-
};
130-
131-
// FIXME turn on smooth scrolling
132-
input_processors {
133-
touch_processor: touch_processor {
134-
compatible = "zmk,input-processor-behaviors";
135-
#input-processor-cells = <0>;
136-
137-
codes = <INPUT_BTN_TOUCH>; // watch for the 'touch' pseudo button
138-
bindings = <&mo 4>; // Activate Layer 4 while held &mo 4
139-
};
140119
};
141120
};

boards/shields/toucan/toucan.keymap

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
#include <dt-bindings/zmk/keys.h>
33
#include <dt-bindings/zmk/bt.h>
44
#include <dt-bindings/zmk/outputs.h>
5-
#include <dt-bindings/zmk/pointing.h>
65

76
#define BASE 0
87
#define NAV 1
98
#define SYM 2
109
#define ADJ 3
11-
#define TAP 4
1210

1311
/ {
1412
conditional_layers {
@@ -28,8 +26,7 @@
2826
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
2927
&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
3028
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp ESC
31-
&kp LGUI &mo 1 &kp SPACE &kp RET &mo 4 &kp RALT
32-
// FIXME change back to mo 2
29+
&kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp RALT
3330
>;
3431
};
3532

@@ -62,22 +59,6 @@
6259
&kp LGUI &mo NAV &kp SPACE &kp RET &mo 2 &kp RALT
6360
>;
6461
};
65-
66-
tap {
67-
display-name = "TAP";
68-
bindings = <
69-
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
70-
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
71-
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
72-
&trans &trans &trans &mkp LCLK &mkp RCLK &mkp MCLK
73-
>;
74-
};
75-
};
76-
};
77-
78-
#ifdef CONFIG_ZMK_STUDIO
79-
/ {
80-
keymap {
8162
extra_1 {
8263
status = "reserved";
8364
};
@@ -90,5 +71,4 @@
9071
status = "reserved";
9172
};
9273
};
93-
};
94-
#endif
74+
};

boards/shields/toucan/toucan_left.conf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,3 @@ CONFIG_ZMK_IDLE_TIMEOUT=30000
2323
# We use this because we need ZMK_PM, PM_DEVICE and ZMK_PM_DEVICE_SUSPEND_RESUME to get proper sleep notifications into the cirque driver
2424
# since we need all that might as well also turn on SOFT_OFF (which implies all these things but adds an optional SOFT_OFF feature)
2525
CONFIG_ZMK_PM_SOFT_OFF=y
26-
27-
# defaults to 512 but we blow out the stack if any input-processor-behaviors is invoked
28-
# see https://github.com/zmkfirmware/zmk/issues/3212 for details
29-
CONFIG_INPUT_THREAD_STACK_SIZE=2048
30-
31-
# enable smooth scrolling
32-
CONFIG_ZMK_POINTING_SMOOTH_SCROLLING=y
33-
34-
# include zmk studio
35-
CONFIG_ZMK_STUDIO=y
36-

boards/shields/toucan/toucan_right.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,3 @@ CONFIG_ZMK_IDLE_TIMEOUT=30000
2929
# We use this because we need ZMK_PM, PM_DEVICE and ZMK_PM_DEVICE_SUSPEND_RESUME to get proper sleep notifications into the cirque driver
3030
# since we need all that might as well also turn on SOFT_OFF (which implies all these things but adds an optional SOFT_OFF feature)
3131
CONFIG_ZMK_PM_SOFT_OFF=y
32-
33-
# defaults to 512 but we blow out the stack if any input-processor-behaviors is invoked
34-
# see https://github.com/zmkfirmware/zmk/issues/3212 for details
35-
CONFIG_INPUT_THREAD_STACK_SIZE=2048

boards/shields/toucan/toucan_right.overlay

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@
6262
spi-max-frequency = <1000000>;
6363
status = "okay";
6464
dr-gpios = <&gpio0 2 (GPIO_ACTIVE_HIGH)>;
65-
sensitivity = "3x"; // 2x feels too jumpy IMO
65+
sensitivity = "2x";
6666
x-invert;
67-
y-invert; // needed for abs mode? not sure why it wasn't needed in relative
68-
abs-rel-divisor = <1>;
6967

7068
// Optional: turning this on enables very aggressive power saving, after 5 seconds with no touches
7169
// the trackpad will go to sleep. It wakes up on touch, but there is a ~300ms delay. Most users will find

0 commit comments

Comments
 (0)