qt5输入的一些细节

在没有窗口系统的情况下,Qt5通过evdev或其他辅助库直接读取鼠标、键盘和触摸输入。eglfs和linuxfb内置了evdev输入处理代码。环境变量可以配置设备节点参数,支持设备热插拔。对于键盘,支持自定义设备、抓取、键盘映射和重复延迟率。在嵌入式Linux系统上,可能需要禁用终端键盘以避免输入冲突。对于触摸,除了使用Linux多点触控协议外,还支持tslib以适应某些单点触摸屏。
摘要由CSDN通过智能技术生成

Input

When no windowing system is present,

the mouse, keyboard and touch input are read directly via evdev or using helper libraries like tslib.

Note that this requires that devices nodes /dev/input/event* are readable by the user.

eglfs and linuxfb has all the evdev input handling code built-in.

直接从evdev读入?

也就是说只要输入符合input规范,qt就能直接收到????也就是说

对于自定义键盘,要在驱动中转换为标准的按键值吗?

Input on eglfs and linuxfb

Parameters like the device node name can be set in the environment variables

QT_QPA_EVDEV_MOUSE_PARAMETERS//设备文件名可以使用这些环境变量指定

QT_QPA_EVDEV_KEYBOARD_PARAMETERS

and QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS. Additionally, the built-in input handlers can be disabled by setting QT_QPA_EGLFS_DISABLE_INPUT or QT_QPA_FB_DISABLE_INPUT to 1. On some touch screens the coordinates will

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值