input-remapper
input-remapper copied to clipboard
`if_single()` on keyboard seems not interacting with `mouse input`.
I remapped Caps Lock
to if_single(key(Escape), hold(Control_L))
.
For example, when I hit Caps lock
with -
to resize the browser, it works fine.
01:04:47.379943 299384 service DEBUG combination_handler.py:138: Sending Combination (InputConfig KEY_CAPSLOCK) to sub-handler
01:04:47.423262 299384 service DEBUG logger.py:105: Writing (1, 29, 1) to "input-remapper keyboard + mouse"
01:04:47.423561 299384 service DEBUG logger.py:105: Writing <InputEvent for (1, 12, 1) KEY_MINUS at 0x7f58fff57250> to "input-remapper QK75 KB forwarded"
01:04:47.509089 299384 service DEBUG logger.py:105: Writing <InputEvent for (1, 12, 0) KEY_MINUS at 0x7f58fff57250> to "input-remapper QK75 KB forwarded"
01:04:47.729869 299384 service DEBUG combination_handler.py:138: Sending Combination (InputConfig KEY_CAPSLOCK) to sub-handler
01:04:47.730271 299384 service DEBUG logger.py:105: Writing (1, 29, 0) to "input-remapper keyboard + mouse"
But when I hit Caps lock
with mouse wheel up or down
or mouse click
, no inputs were showing:
01:06:54.719759 299384 service DEBUG combination_handler.py:138: Sending Combination (InputConfig KEY_CAPSLOCK) to sub-handler
01:06:55.373100 299384 service DEBUG combination_handler.py:138: Sending Combination (InputConfig KEY_CAPSLOCK) to sub-handler
01:06:55.373454 299384 service DEBUG logger.py:105: Writing (1, 1, 1) to "input-remapper keyboard + mouse"
01:06:55.373574 299384 service DEBUG logger.py:105: Writing (1, 1, 0) to "input-remapper keyboard + mouse"
Since keyboard and mouse are different devices, so I think I should do some config on my mouse but couldn't grasp the idea.
Could you help me how to deal with it?
Hi there, I have been looking to address the same problem.
My initial solution involved setting and unsetting variables (which work globally across devices), but I was only able to address mouse clicks and not scrolling. Even for the mouse clicking, the mouse input was lagging like crazy.
My current (hacky) workaround is to use an intermediary key along with caps and the mouse input (e.g. Caps + 3 + Click). Works with both click and scroll. However, this is very hacky at the moment as it is likely to interfere with shortcuts in different apps.
I am not too familiar with the underlying mechanics of this program, but would there be a more reliable way for presets to work across input devices?