From 44b57a16413d24012bea08dfffde07a4b26c9835 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 9 Apr 2023 16:14:02 -0600 Subject: [PATCH] Fix thumbwheel interval bug. Add my config. Uses this fix: https://github.com/PixlOne/logiops/issues/231#issuecomment-899835762 --- logid.cfg | 111 ++++++++++++++++++++++++++++++ src/logid/features/ThumbWheel.cpp | 2 +- 2 files changed, 112 insertions(+), 1 deletion(-) create mode 100644 logid.cfg diff --git a/logid.cfg b/logid.cfg new file mode 100644 index 0000000..7be1a82 --- /dev/null +++ b/logid.cfg @@ -0,0 +1,111 @@ +devices: ( +{ + name: "MX Master 3S"; + smartshift: + { + on: true; + threshold: 30; + }; + hiresscroll: + { + hires: false; + invert: false; + target: false; + }; + dpi: 1000; + + thumbwheel: + { + divert: true; + invert: false; + left: + { + threshold: 1; + interval: 10; + direction: "Left"; + mode: "OnInterval"; + action = + { + type: "Keypress"; + keys: ["KEY_VOLUMEDOWN"]; + }; + }; + right: + { + threshold: 1; + interval: 10; + direction: "Right"; + mode: "OnInterval"; + action = + { + type: "Keypress"; + keys: ["KEY_VOLUMEUP"]; + }; + }; + }; + + buttons: ( + { + cid: 0xc3; + action = + { + type: "Gestures"; + gestures: ( + { + direction: "Up"; + threshold: 50; + mode: "OnRelease"; + action = + { + type: "Keypress"; + keys: ["KEY_UP"]; + }; + }, + { + direction: "Down"; + threshold: 50; + mode: "OnRelease"; + action = + { + type: "Keypress"; + keys: ["KEY_DOWN"]; + }; + }, + { + direction: "Left"; + threshold: 50; + mode: "OnRelease"; + action = + { + type: "Keypress"; + keys: ["KEY_RIGHTMETA", "KEY_PAGEUP"]; + }; + }, + { + direction: "Right"; + threshold: 50; + mode: "OnRelease"; + action = + { + type: "Keypress"; + keys: ["KEY_RIGHTMETA", "KEY_PAGEDOWN"]; + } + }, + { + direction: "None" + mode: "NoPress" + } + ); + }; + }, + { + cid: 0xc4; + action = + { + type: "Keypress"; + keys: ["KEY_A"]; + }; + } + ); +} +); diff --git a/src/logid/features/ThumbWheel.cpp b/src/logid/features/ThumbWheel.cpp index 14b5dcc..7b37d56 100644 --- a/src/logid/features/ThumbWheel.cpp +++ b/src/logid/features/ThumbWheel.cpp @@ -149,7 +149,7 @@ void ThumbWheel::_handleEvent(hidpp20::ThumbWheel::ThumbwheelEvent event) scroll_action = _config.leftAction(); if(scroll_action) { - scroll_action->press(true); + //scroll_action->press(true); scroll_action->move(direction * event.rotation); }