错误: 包括 `Touchpad` 设备会阻止 Cursor 的移动
- I've searched platform-specific issues, issues and discussions to see if this has been reported before.
- My issue does not involve multiple simultaneous key presses, OR it does but I've confirmed it is not key rollover or ghosting.
Describe the bug
In my linux-dev-names-include I list the following "mouse" (touchpad) device:
12:29:32.8528 [INFO] device [/dev/input/event6:ELAN0735:00 04F3:316C Mouse] is includedThis does not cause any issues, but also does not seem to pull in any events. Running in --debug shows no output when moving around the touchpad, or clicking any combination of fingers. Maybe it's just a dummy device of some kind, I'm not sure. So I then attempted to include the other device associated with my touchpad hardware:
12:29:32.8528 [INFO] device [/dev/input/event6:ELAN0735:00 04F3:316C Touchpad] is includedAt first I tried running without sudo per the doc instructions (how I usually run Kanata), but the device does not get listed as included despite being in my config. When I run Kanata with sudo, I get the above is included message. However, my Cursor stops responding to touchpad movements. I can still press to click, but tapping does not click and moving around the touchpad does not move the Cursor. process-unmapped-keys is on, and I've tried switching to linux-output-device-bus-type USB as well. It's definitely processing input from the device per the DEBUG logs, but movements don't seem to pass through.
Relevant kanata config
(defcfg
process-unmapped-keys yes
delegate-to-first-layer yes
rapid-event-delay 5
movemouse-smooth-diagonals yes
movemouse-inherit-accel-state yes
mouse-movement-key mvmt
;; Kanata captures everything on Linux by default, so we give it these device names as to ignore the rest.
linux-dev-names-include (
"ELAN0735:00 04F3:316C Mouse" ;; no input
"ELAN0735:00 04F3:316C Touchpad" ;; consumes Cursor movement
"AT Translated Set 2 keyboard"
"Logitech G305"
"Razer Razer DeathAdder Essential"
"Razer Razer DeathAdder Essential Keyboard"
"ZMK Project Lily58 Mouse"
"ZMK Project Lily58 Keyboard"
"Lily58 Mouse"
"Lily58 Keyboard"
)
)To Reproduce
Attempt to include this touchpad. I have no other touchpad hardware to test with, unfortunately.
Expected behavior
Cursor continues to move while touchpad is included.
Kanata version
1.12.0
Debug logs
12:49:08.5499 [INFO] config file is valid
12:49:08.5500 [DEBUG] (1) kanata_parser::cfg::alloc: sref type: [kanata_keyberon::action::Action<'_, &kanata_parser::custom_action::CustomAction>; 767], ptr:0x55c5e6cf5520 sz:12272
12:49:08.5512 [INFO] Created device "/dev/input/event20"
12:49:08.5513内容来源: jtroo/kanata