伪输入管理器

此接口允许其他进程提供伪造的输入事件。 其目的一方面是提供类似 X11 中 XTest 的测试功能, 另一方面是支持如 KDE Connect 的鼠标触控板接口等用例。

合成器不应信任从此接口接收到的输入。 客户端不应期望合成器会遵守来自此接口的请求。

警告!此文件中描述的协议是桌面环境的内部实现细节。 普通客户端不得使用此协议。 可能会在不增加扩展主版本号的情况下引入不向后兼容的更改。

authenticate(application: string, reason: string)
参数
类型
描述
applicationstring
user visible name of the application
reasonstring
reason why the application wants to use this interface
告知客户端使用此接口的原因

客户端应使用此请求告知合成器其使用此接口的原因。 合成器可能会利用该信息决定是否授予请求。 该信息也可能会传递给用户,由用户决定是否允许应用程序访问此高权限接口。

pointer_motion(delta_x: fixed, delta_y: fixed)
参数
类型
描述
delta_xfixed
delta_yfixed
button(button: uint, state: uint)
参数
类型
描述
buttonuint
stateuint
axis(axis: uint, value: fixed)
参数
类型
描述
axisuint
valuefixed
touch_down(id: uint, x: fixed, y: fixed)
参数
类型
描述
iduint
unique id for touch down event
xfixed
x coordinate for touch down event
yfixed
y coordinate for touch down event
触摸按下事件

客户端应使用此请求在指定坐标发送触摸按下事件。

touch_motion(id: uint, x: fixed, y: fixed)
参数
类型
描述
iduint
unique id for touch motion event
xfixed
x coordinate for touch motion event
yfixed
y coordinate for touch motion event
触摸移动事件

客户端应使用此请求将触摸移动到指定位置。

touch_up(id: uint)
参数
类型
描述
iduint
unique id for touch up event
触摸抬起事件

客户端应使用此请求发送触摸抬起事件。

touch_cancel()
触摸取消事件

客户端应使用此请求取消当前的触摸事件。

touch_frame()
触摸帧事件

客户端应使用此请求发送触摸帧事件。

pointer_motion_absolute(x: fixed, y: fixed)
参数
类型
描述
xfixed
yfixed
keyboard_key(button: uint, state: uint)
参数
类型
描述
buttonuint
stateuint
destroy
类型: destructor起始版本 5
destroy()
销毁伪输入设备
keyboard_keysym(keysym: uint, state: uint)
参数
类型
描述
keysymuint
stateuint

合成器支持

未发现合成器支持

SPDX-FileCopyrightText: 2015 Martin Gräßlin

SPDX-License-Identifier: LGPL-2.1-or-later

Footer

© 2026 Wayland Explorer

本网站与 Wayland 官方项目无任何关联。网站所有内容均根据 Wayland 协议 XML 文件自动生成。

本网站使用的 Visual Studio Code - Codicons 遵循 CC BY 4.0 许可。