Comments (4)
I just tested this configuration and it works as expected with regard to the right button being sticky while left button is held:
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.
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.
You can set the sticky flag on a mapping that activates a layer, making it a toggle.
from hid-remapper.
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](https://private-user-images.githubusercontent.com/6627581/311395109-e03b0866-8918-4b8e-8577-113ea76834f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTYyNDU3MDYsIm5iZiI6MTcxNjI0NTQwNiwicGF0aCI6Ii82NjI3NTgxLzMxMTM5NTEwOS1lMDNiMDg2Ni04OTE4LTRiOGUtODU3Ny0xMTNlYTc2ODM0ZjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjBUMjI1MDA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWVlNTA5MjBmYjRhOTM0YjEwZGE3YTY4YjE3ZTNlYjA3NjRjZWM0ZTM5MWU5ZWYyN2FmNGI3MjlhYTNkYmRmMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.5PJAr9olivquKQ2L69K3myktUxF8j3C6N4cKin7nJ_g)
from hid-remapper.
Related Issues (20)
- Usage on a Pico without USB input at all => reuse the D+ and D- as GPIO?
- Would you consider RGB output (APA102 and WS2812B)? HOT 1
- Weird issue with zowie ec1-c HOT 4
- Switch Output does not enable controller setup HOT 3
- Feature Request: Control HID Remapper via USB Serial HOT 1
- Home and Back button not forwarded when using hid-remapper HOT 9
- Feature: Monitor control using DDC/CI protocol
- Emulated a single controller using a USB Joystick and a gamepad using free GPIOs HOT 4
- Firmware for nrf52840-mdk-usb-dongle
- Problem with arrow keys in macro HOT 4
- Support for the sleep and power buttons HOT 4
- Ensure that the prior key in a tap-hold binding is equal to the tap input key when initiating a tap binding HOT 3
- HID Remapper with hand held speechmike HOT 4
- Unable to get board v5 to work HOT 16
- Clear Layer HOT 3
- Support: Startup (run once) action (and Delay) HOT 4
- How would i? Capslock is Escape, or Control if pressed with a key? HOT 6
- Feature Request: WAIT macro HOT 2
- A single key press HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hid-remapper.