如何将 Wacom Bamboo CTH-470 数位板上的按钮配置为鼠标点击

如何将 Wacom Bamboo CTH-470 数位板上的按钮配置为鼠标点击

我有一台在 Ubuntu 19.10 上运行的 Wacom Bamboo CTH-470,从笔到平板,一切都运行正常,但是平板电脑上的按钮无法识别,好吧,它们被识别了,但除了在设置菜单中之外没有任何操作。我进行了大量搜索、链接和指南,终于让按钮“正确”识别,这意味着我从 xinput 到 xsetwacom,终于明白了如何将按钮映射到其正确的物理位置。我唯一需要验证这一点的方法是通过“settings/devices/wacom Tablet”,当我单击“Tablet”选项卡并单击“映射按钮...”时,我可以看到四个按钮,它为我提供了四个选项:“应用程序定义”、“显示屏幕帮助”、“切换监视器”和“分配按键”。

当我按下每个按钮时,它会显示所选的正确按钮并提供这些选项,但是我想使用这些按钮作为鼠标单击,例如右键单击、左键单击等。我认为这是一件轻而易举的事,但显然并非如此,我运行了:

~$ xinput

⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ ETPS/2 Elantech Touchpad id=16 [slave pointer (2)] ⎜ ↳ Kensington Expert Wireless TB Mouse id=13 [slave pointer (2)] ⎜ ↳ Wacom Bamboo 16FG 4x5 Pen stylus id=17 [slave pointer (2)] ⎜ ↳ Wacom Bamboo 16FG 4x5 Pen eraser id=18 [slave pointer (2)] ⎜ ↳ Wacom Bamboo 16FG 4x5 Pad pad id=19 [slave pointer (2)] ⎜ ↳ Wacom Bamboo 16FG 4x5 Finger touch id=20 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ Power Button id=6 [slave keyboard (3)] ↳ Video Bus id=7 [slave keyboard (3)] ↳ Sleep Button id=8 [slave keyboard (3)] ↳ USB2.0 UVC 2M WebCam: USB2.0 UV id=9 [slave keyboard (3)] ↳ Asus Laptop extra buttons id=14 [slave keyboard (3)] ↳ AT Translated Set 2 keyboard id=15 [slave keyboard (3)] ↳ Kensington Expert Wireless TB Consumer Control id=10 [slave keyboard (3)] ↳ Apple Inc. Apple Keyboard id=11 [slave keyboard (3)] ↳ Apple Inc. Apple Keyboard id=12 [slave keyboard (3)]

从哪里我得到了平板电脑的 id:19,然后:

~$ xinput get-button-map 19

1 2 3 4 5 6 7 8 9

这告诉我按钮已分配,但当我单击它们时,什么也没有发生。然后我输入:

~$ xinput list 19

Wacom Bamboo 16FG 4x5 Pad pad id=19 [slave pointer (2)] Reporting 8 classes: Class originated from: 19. Type: XIButtonClass Buttons supported: 9 Button labels: None None None None None None None None None Button state: Class originated from: 19. Type: XIKeyClass Keycodes supported: 248 Class originated from: 19. Type: XIValuatorClass Detail for Valuator 0: Label: Abs X Range: 0.000000 - 0.000000 Resolution: 0 units/m Mode: absolute Current value: 0.000000 Class originated from: 19. Type: XIValuatorClass Detail for Valuator 1: Label: Abs Y Range: 0.000000 - 0.000000 Resolution: 0 units/m Mode: absolute Current value: 0.000000 Class originated from: 19. Type: XIValuatorClass Detail for Valuator 2: Label: None Range: 0.000000 - 1.000000 Resolution: 1 units/m Mode: absolute Current value: 0.000000 Class originated from: 19. Type: XIValuatorClass Detail for Valuator 3: Label: None Range: 0.000000 - 1.000000 Resolution: 1 units/m Mode: absolute Current value: 0.000000 Class originated from: 19. Type: XIValuatorClass Detail for Valuator 4: Label: None Range: 0.000000 - 1.000000 Resolution: 1 units/m Mode: absolute Current value: 0.000000 Class originated from: 19. Type: XIValuatorClass Detail for Valuator 5: Label: None Range: 0.000000 - 1.000000 Resolution: 1 units/m Mode: absolute Current value: 0.000000

由此我推测问题在于“按钮标签”缺失,这就是他们不采取任何行动的原因。我的问题是:我的假设正确吗?如果正确,我该如何修改“按钮标签”?如果我错了,我该如何分配左键、右键和中键单击?

如果有人能帮忙的话,我将不胜感激。谢谢!

相关内容