Skip to content

Commit

Permalink
Add scroll turbo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar authored and github-actions[bot] committed Jan 7, 2025
1 parent 85d434c commit e35ee2f
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 1 deletion.
23 changes: 22 additions & 1 deletion config/includes/mouse.dtsi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <zephyr/dt-bindings/input/input-event-codes.h>

#define ZMK_POINTING_DEFAULT_MOVE_VAL 1500 // 600
#define ZMK_POINTING_DEFAULT_SCRL_VAL 20 // 10

Expand All @@ -19,6 +21,25 @@
&mmv_input_listener {
precision {
layers = <NAV>;
input-processors = <&zip_xy_scaler 1 4>;
input-processors = <&zip_xy_scaler 1 4>;
};
};

/ {
input_processors {
zip_scroll_scaler: zip_scroll_scaler {
compatible = "zmk,input-processor-scaler";
#input-processor-cells = <2>;
type = <INPUT_EV_REL>;
codes = <INPUT_REL_WHEEL INPUT_REL_HWHEEL>;
track-remainders;
};
};
};

&msc_input_listener {
turbo {
layers = <NAV>;
input-processors = <&zip_scroll_scaler 3 1>;
};
};
6 changes: 6 additions & 0 deletions keymap-drawer/corneish_zen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions keymap-drawer/corneish_zen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ combos:
k: Show Conn
l: [FUN]
a: top
- p: [4, 5]
k: Boot
l: [FUN]
- p: [31, 32]
k: MSE
l: [DEF, BRD]
6 changes: 6 additions & 0 deletions keymap-drawer/grumpybird.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions keymap-drawer/grumpybird.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,3 +295,6 @@ combos:
k: Show Conn
l: [FUN]
a: top
- p: [4, 5]
k: Boot
l: [FUN]
6 changes: 6 additions & 0 deletions keymap-drawer/hummingbird.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions keymap-drawer/hummingbird.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ combos:
k: Show Conn
l: [FUN]
a: top
- p: [4, 5]
k: Boot
l: [FUN]
- p: [26, 27]
k: MSE
l: [DEF, BRD]
6 changes: 6 additions & 0 deletions keymap-drawer/hypergolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions keymap-drawer/hypergolic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ combos:
k: Show Conn
l: [FUN]
a: top
- p: [4, 5]
k: Boot
l: [FUN]
- p: [30, 31]
k: MSE
l: [DEF, BRD]
6 changes: 6 additions & 0 deletions keymap-drawer/rommana.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions keymap-drawer/rommana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ combos:
k: Show Conn
l: [FUN]
a: top
- p: [4, 5]
k: Boot
l: [FUN]
- p: [26, 27]
k: MSE
l: [DEF, BRD]

0 comments on commit e35ee2f

Please sign in to comment.