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

Remapped mouse event doesn't start when keyboard and mouse have the same name #27

Open
Funayama7 opened this issue Feb 24, 2022 · 0 comments

Comments

@Funayama7
Copy link

I am using this very nice product, thanks to the author!

If keyboard and mouse have the same name, there will be a situation where config's keyboards field cannot identify the mouse name and remapped mouse event will not start.
Therefore, remap setting for the mouse will not work.

Example environment:

# evtest
Available devices:
(snip!)
/dev/input/event2:      AT Translated Set 2 keyboard
/dev/input/event26:     Lenovo ThinkPad Compact USB Keyboard with TrackPoint
/dev/input/event27:     Lenovo ThinkPad Compact USB Keyboard with TrackPoint
(snip!)

event26 is the keyboard and event27 is the mouse (trackpoint).

Config file:

# head -n1 ./config.yml
- keyboards: [ "AT Translated Set 2 keyboard" , "Lenovo ThinkPad Compact USB Keyboard with TrackPoint" ]

Debug log:

# kbct -d remap --config ./config.yml
 INFO  kbct > Starting kbct event loop, pid=71259
 INFO  kbct > Capturing device path=/dev/input/event2 name="AT Translated Set 2 keyboard" mapped_name="Kbct-AT Translated Set 2 keyboard"
 INFO  kbct > Capturing device path=/dev/input/event26 name="Lenovo ThinkPad Compact USB Keyboard with TrackPoint" mapped_name="Kbct-Lenovo ThinkPad Compact USB Keyboard with TrackPoint"

event27 does not appear..

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

No branches or pull requests

1 participant