Pointer handling in Qt/Embedded works for any mouse-like device such as a touchpanel, a trackball, or real mouse.
In a real device, only a small number of pointer devices (usually one) would be supported, but for demonstration purposes, Qt/Embedded includes a large number of supported devices.
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:
To add another protocol, new subclasses of QAutoMouseSubHandler or QMouseHandler can be written in kernel/qwsmouse_qws.cpp.
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.
Copyright © 2000 Trolltech | Trademarks | Qt version 2.2.1
|