Libinput 需要 X/Wayland 吗?

Libinput 需要 X/Wayland 吗?

简而言之:X.org 是 Libinput 的依赖项吗?

换句话说,libinput 可以独立工作吗?

问题主要是关于如何破解一些输入设备。我正在尝试通过无头树莓派路由 USB/PS1/蓝牙输入。我希望它尽可能通用,同时尽可能减少安装。

答案1

根据手册页

libinput  is  a  library  to  handle input devices and provides device detection and input
device event processing for most Wayland compositors  and  the  X.Org  xf86-input-libinput
driver.

The  libinput  tools  are  a  set  of  tools to debug, interface with and analyze data for
libinput. These tools create libinput contexts separate  from  that  of  the  compositor/X
server  and  cannot change settings in a running session.  See section COMMANDS for a list
of available commands.

libinput's API documentation and details on features and various high-level  concepts  are
available online at https://wayland.freedesktop.org/libinput/doc/latest/

The man page for the X.Org xf86-input-libinput driver is libinput(4).

相关内容