返回介绍

Qt/Embedded Pointer Handling

发布于 2019-10-04 14:57:55 字数 1474 浏览 829 评论 0 收藏 0

Pointer handling in Qt/Embedded works for any mouse or mouse-like
device such as touchpanels and trackballs.

Usually only one pointer device is supported in an embedded device,
but for demonstration purposes, Qt/Embedded includes a large number of
supported devices.

Mouse Protocols

Qt/Embedded normally auto-detects the mouse type and device if it is one of
the supported types on /dev/psaux or one of the /dev/ttyS?
serial lines. If multiple mice are detected, all may be used simultaneously.

Alternatively, you may set the environment variable QWS_MOUSE_PROTO to
determine which mouse to use. This environment variable may be set to:

<protocol>:<device>

where <protocol> is one of:

  • MouseMan
  • IntelliMouse
  • Microsoft

and <device> is the mouse device, often /dev/mouse.
If no such variable is specified, the built-in default
is Auto, which enables auto-detection of the mouse protocol
and device.

To add another protocol, new subclasses of QAutoMouseSubHandler or
QMouseHandler can be written in kernel/qwsmouse_qws.cpp.

Touch Panels

Qt/Embedded ships with support for the NEC Vr41XX touchpanel
and the iPAQ touchpanel.
These are subclasses of QCalibratedMouseHandler which is in turn
a subclass of QMouseHandler in kernel/qwsmouse_qws.cpp.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文