KDE fake input
伪输入管理器
此接口允许其他进程提供伪造的输入事件。 其目的一方面是提供类似 X11 中 XTest 的测试功能, 另一方面是支持如 KDE Connect 的鼠标触控板接口等用例。
合成器不应信任从此接口接收到的输入。 客户端不应期望合成器会遵守来自此接口的请求。
警告!此文件中描述的协议是桌面环境的内部实现细节。 普通客户端不得使用此协议。 可能会在不增加扩展主版本号的情况下引入不向后兼容的更改。
authenticate(application: string, reason: string)
参数 | 类型 | 描述 |
|---|---|---|
| application | string | user visible name of the application |
| reason | string | reason why the application wants to use this interface |
告知客户端使用此接口的原因
客户端应使用此请求告知合成器其使用此接口的原因。 合成器可能会利用该信息决定是否授予请求。 该信息也可能会传递给用户,由用户决定是否允许应用程序访问此高权限接口。
参数 | 类型 | 描述 |
|---|---|---|
| id | uint | unique id for touch down event |
| x | fixed | x coordinate for touch down event |
| y | fixed | y coordinate for touch down event |
触摸按下事件
客户端应使用此请求在指定坐标发送触摸按下事件。
参数 | 类型 | 描述 |
|---|---|---|
| id | uint | unique id for touch motion event |
| x | fixed | x coordinate for touch motion event |
| y | fixed | y coordinate for touch motion event |
触摸移动事件
客户端应使用此请求将触摸移动到指定位置。
合成器支持
未发现合成器支持