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