Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling not working at Gestures mode #281

Open
ghost opened this issue Nov 29, 2021 · 3 comments
Open

Scrolling not working at Gestures mode #281

ghost opened this issue Nov 29, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2021

Hello,
I am trying to swtich central scroll to horizontal scroll when gesture button is pressed.
However, with this configuration, the action or axis at gesture mode with direction ScrollDown or ScrollUp does not work, and I just couldn't figure out why.
Please point out if there is something wrong in the cfg or if it is a bug, thank you.

devices:
(
{
    name: "Wireless Mouse MX Master 3";
    smartshift:
    {
        on: true;
        threshold: 16;
    };
	hiresscroll:
    {
       hires: true;
       invert: false;
       target: true;
       up:
       {
            mode: "Axis";
            axis: "REL_WHEEL_HI_RES";
            axis_multiplier: 2;
        },
        down:
        {
            mode: "Axis";
            axis: "REL_WHEEL_HI_RES";
            axis_multiplier: -2;
        },
    };
    dpi: 1000;

    buttons:
    (
        {
            cid: 0xc3;
            action =
            {
                type: "Gestures";
                gestures:
                (
                    {
                        direction: "Up";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTCTRL", "KEY_F8"];
                        };
                    },
                    {
                        direction: "Down";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTMETA", "KEY_D"];
                        };
                    },
                    {
                        direction: "Left";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_RIGHT"];
                        };
                    },
                    {
                        direction: "Right";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_LEFT"];
                        };
                    },
                    {
                        direction: "None";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_LEFTCTRL", "KEY_F9"];
                        };
                    },
                    {
                        direction: "ScrollDown";
                        threshold: 1;
                        mode: "Axis";
                        axis: "REL_HWHEEL_HI_RES";
                        axis_multiplier: -2;
                    },
                    {
                        direction: "ScrollUp";
                        threshold: 1;
                        mode: "Axis";
                        axis: "REL_HWHEEL_HI_RES";
                        axis_multiplier: 2;
                    }
                );
            };
        },
        {
            cid: 0xc4;
            action =
            {
                type: "Keypress";
                keys: ["KEY_PLAYPAUSE"];
            };
        },
        {
            cid: 0x56;
            action =
            {
                type: "Keypress";
                keys: ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_PRINT"];
            };
        },
        {
            cid: 0x53;
            action =
            {
                type: "Keypress";
                keys: ["KEY_LEFTCTRL"];
            };
        }
    );
}
);
@S-trace
Copy link

S-trace commented Dec 6, 2021

Please take a look at #245 pull request - I also faced this bug and fixed it.

@ghost
Copy link
Author

ghost commented Dec 11, 2021

Thanks for replying, but it seems that the issue you had have been solved in the lastest release, and my mouse can perform REL_HWHELL in gesture mode without modifing the source code, my issue instead is that the ScrollUp or ScrollDown can't function in gesture mode, regardless the mode is onrelease or axis, and whatever the action is.

@ghost
Copy link
Author

ghost commented Dec 11, 2021

Now solved by using the branch from pull request #161

PixlOne added a commit that referenced this issue Jan 2, 2022
ckiee pushed a commit to ckiee/logiops that referenced this issue Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant