Giter Club home page Giter Club logo

Comments (7)

muesli avatar muesli commented on August 17, 2024 1

@PixlOne Oh, I see. Thank you! I also misunderstood the function: I thought it'd only trigger once (after a "few" pixels). Maybe such a "single-shot" method could be added as well?

from logiops.

PixlOne avatar PixlOne commented on August 17, 2024

That's weird, my MX Master doesn't seem to have that issue.

Could you post a log of the program and your config file?

from logiops.

muesli avatar muesli commented on August 17, 2024

Config:

devices: (
{
    name: "MX Master 3";
    smartshift:
    {
        on: true;
        threshold: 10;
    };
    hiresscroll:
    {
        hires: false;
        invert: false;
        target: false;
    };
    dpi: 1250;

    buttons: (
        {
            cid: 0xc3;
            action =
            {
                type: "Gestures";
                gestures: (
                    {
                        direction: "Up";
                        mode: "OnFewPixels";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_PAUSE"];
                        };
                    },
                    {
                        direction: "Down";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";
                            keys: ["KEY_F12"];
                        };
                    },
                    {
                        direction: "None";
                        mode: "OnRelease";
                        action =
                        {
                            type: "Keypress";   
                            keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_TAB"];
                        };
                    }
                );
            };
        }
    );
}
);

KEY_PAUSE triggers my Terminal being focused on my system. When I hold the thumb button and move the mouse up the terminal quickly gains focus, then loses it again. It looks as if the event is triggered twice in very quick succession - and then never again. The other actions keep working.

from logiops.

PixlOne avatar PixlOne commented on August 17, 2024

Your config file was missing a pixels field for OnFewPixels which resulted in undefined behaviour. It should have warned you about that and disabled the gesture but for some reason, it didn't.

I just fixed this in the latest commit.

from logiops.

PixlOne avatar PixlOne commented on August 17, 2024

Yeah, I didn't really know what I should call it. In hindsight, I should have called it "PixelInterval". I might change it but I'd like to avoid messing with people's configs.

from logiops.

muesli avatar muesli commented on August 17, 2024

I agree, the config should probably remain compatible. We could either add a separate singleshot mode, or switch to that behavior in OnFewPixels mode when pixels is set to 0?

from logiops.

muesli avatar muesli commented on August 17, 2024

Also, maybe it would be a nice idea to add a OnFewPixels mode configuration to the example configuration file?

from logiops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.