Giter Site home page Giter Site logo

Comments (4)

jfedor2 avatar jfedor2 commented on August 17, 2024

I just tested this configuration and it works as expected with regard to the right button being sticky while left button is held:
Screenshot from 2024-03-08 17-28-02
You'd probably also want to add a Left button->Left button mapping with the "tap" flag set so that you can continue to use it as the left button.
Also keep in mind with this configuration, you have to be on layer 1 to "unstick" the right button by pressing it again.
To control the Scroll Lock LED directly, the keyboard needs to be plugged into HID Remapper.

from hid-remapper.

waytgibbs avatar waytgibbs commented on August 17, 2024

Thank you for the fast and helpful response! I did not understand that a layer activation works like a momentary switch, not a toggle. A tiny change to the documentation would have prevented my confusion--I'd suggest changing "when" to "while" in the sentence "This means that when that button is pressed, layer X is active and therefore mappings from layer X are applied."

I would add that an option to toggle a layer--e.g., to activate layer 3 with a button tap and keep that layer active until that button is tapped again--would be a powerful new feature for hid-remapper. It would allow users to change how the attached device works for a specific application or class of applications, e.g. drawing apps or certain kinds of games.

For my use case, where I want to be able to make the primary mouse button sticky by holding a button for more than the threshold and then releasing it, I found a solution in the Windows 10 mouse settings. Going to advanced mouse settings reveals a checkbox and slider for controlling the activation of click lock after a configurable delay.

from hid-remapper.

jfedor2 avatar jfedor2 commented on August 17, 2024

You can set the sticky flag on a mapping that activates a layer, making it a toggle.

from hid-remapper.

waytgibbs avatar waytgibbs commented on August 17, 2024

Very cool, thanks!
In case it is helpful to others as an example, here is a set of mappings I am using that:

  • reverses the left and right mouse buttons (because I am left-handed)
  • uses button 7 to toggle click lock on and off for the right (primary) mouse button
  • activates scroll lock (lighting the led on the keyboard) when in click lock mode
image

from hid-remapper.

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.