Wayland 的 xinput 替代品?

Wayland 的 xinput 替代品?

在 Wayland 上是否有 xinput 的替代品?我发现我的一个 gnome-shell-extension 无法正常工作,因为 xinput 提供的关于 wayland 下设备的信息有限(当然,因为它是为在 xorg 上运行而编写的)。

xinput --list在 xorg 上:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech Performance MX                   id=10   [slave  pointer  (2)]
⎜   ↳ Logitech MX Master                        id=11   [slave  pointer  (2)]
⎜   ↳ HID 046a:0023                             id=15   [slave  pointer  (2)]
⎜   ↳ DLL07D1:01 044E:120B                      id=16   [slave  pointer  (2)]
⎜   ↳ DualPoint Stick                           id=17   [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)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Sleep Button                              id=9    [slave  keyboard (3)]
    ↳ Integrated_Webcam_HD: Integrate           id=12   [slave  keyboard (3)]
    ↳ HID 041e:30d3                             id=13   [slave  keyboard (3)]
    ↳ HID 046a:0023                             id=14   [slave  keyboard (3)]
    ↳ Intel HID events                          id=18   [slave  keyboard (3)]
    ↳ Intel HID 5 button array                  id=19   [slave  keyboard (3)]
    ↳ Dell WMI hotkeys                          id=20   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=21   [slave  keyboard (3)]
    ↳ Logitech MX Master                        id=22   [slave  keyboard (3)]
    ↳ HID 046a:0023                             id=23   [slave  keyboard (3)]

xinput --list在 Wayland 上:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ xwayland-pointer:15                       id=6    [slave  pointer  (2)]
⎜   ↳ xwayland-relative-pointer:15              id=7    [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ xwayland-keyboard:15                      id=8    [slave  keyboard (3)]

现在我的问题是:在 Wayland 上是否有具有类似功能的替代品?

当前系统是 Dell Latitude 5580 上的 Ubuntu 17.10

相关内容