| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 
|---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/qws.doc:483 --> | 
|---|
| 3 | <html> | 
|---|
| 4 | <head> | 
|---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | 
|---|
| 6 | <title>Qt/Embedded Pointer Handling</title> | 
|---|
| 7 | <style type="text/css"><!-- | 
|---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; } | 
|---|
| 9 | a:link { color: #004faf; text-decoration: none } | 
|---|
| 10 | a:visited { color: #672967; text-decoration: none } | 
|---|
| 11 | body { background: #ffffff; color: black; } | 
|---|
| 12 | --></style> | 
|---|
| 13 | </head> | 
|---|
| 14 | <body> | 
|---|
| 15 |  | 
|---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%"> | 
|---|
| 17 | <tr bgcolor="#E5E5E5"> | 
|---|
| 18 | <td valign=center> | 
|---|
| 19 | <a href="index.html"> | 
|---|
| 20 | <font color="#004faf">Home</font></a> | 
|---|
| 21 | | <a href="classes.html"> | 
|---|
| 22 | <font color="#004faf">All Classes</font></a> | 
|---|
| 23 | | <a href="mainclasses.html"> | 
|---|
| 24 | <font color="#004faf">Main Classes</font></a> | 
|---|
| 25 | | <a href="annotated.html"> | 
|---|
| 26 | <font color="#004faf">Annotated</font></a> | 
|---|
| 27 | | <a href="groups.html"> | 
|---|
| 28 | <font color="#004faf">Grouped Classes</font></a> | 
|---|
| 29 | | <a href="functions.html"> | 
|---|
| 30 | <font color="#004faf">Functions</font></a> | 
|---|
| 31 | </td> | 
|---|
| 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Qt/Embedded Pointer Handling</h1> | 
|---|
| 33 |  | 
|---|
| 34 |  | 
|---|
| 35 | Pointer handling in Qt/Embedded works for any mouse or mouse-like | 
|---|
| 36 | device such as touchpanels and trackballs. | 
|---|
| 37 | <p> Usually only one pointer device is supported in an embedded device, | 
|---|
| 38 | but for demonstration purposes, Qt/Embedded includes a large number of | 
|---|
| 39 | supported devices. | 
|---|
| 40 | <p> <h2> Mouse Protocols | 
|---|
| 41 | </h2> | 
|---|
| 42 | <a name="1"></a><p> Mouse drivers can be enabled/disabled via the configure script.  Running | 
|---|
| 43 | ./configure -help lists the available mouse drivers.  Only the | 
|---|
| 44 | "pc" mouse driver is enabled in the default configuration. | 
|---|
| 45 | <p> Provided the "pc" mouse driver is enabled, Qt/Embedded auto-detects the | 
|---|
| 46 | mouse type and device if it is one of | 
|---|
| 47 | the supported types on <tt>/dev/psaux</tt> or one of the <tt>/dev/ttyS?</tt> | 
|---|
| 48 | serial lines. If multiple mice are detected, all may be used simultaneously. | 
|---|
| 49 | <p> Alternatively, you may set the environment variable <tt>QWS_MOUSE_PROTO</tt> | 
|---|
| 50 | to determine which mouse to use. This environment variable may be set | 
|---|
| 51 | to: | 
|---|
| 52 | <blockquote> | 
|---|
| 53 | <em><protocol></em><tt>:</tt><em><device></em> | 
|---|
| 54 | </blockquote> | 
|---|
| 55 | where <em><protocol></em> is one of: | 
|---|
| 56 | <ul> | 
|---|
| 57 | <li> MouseMan | 
|---|
| 58 | <li> IntelliMouse | 
|---|
| 59 | <li> Microsoft | 
|---|
| 60 | </ul> | 
|---|
| 61 | and <em><device></em> is the mouse device, often <tt>/dev/mouse</tt>. If no | 
|---|
| 62 | such variable is specified, the built-in default is <tt>Auto</tt>, which | 
|---|
| 63 | enables auto-detection of the mouse protocol and device. | 
|---|
| 64 | <p> To add another protocol, new subclasses of <a href="qwsmousehandler.html">QWSMouseHandler</a> and | 
|---|
| 65 | <a href="qmousedriverplugin.html">QMouseDriverPlugin</a> can be written and installed as plugins. | 
|---|
| 66 | <p> <h2> Touch Panels | 
|---|
| 67 | </h2> | 
|---|
| 68 | <a name="2"></a><p> Qt/Embedded ships with support for the NEC Vr41XX touchpanel and the | 
|---|
| 69 | emerging linux touchpanel standard used by the iPAQ and Zaurus. These | 
|---|
| 70 | are subclasses of QWSCalibratedMouseHandler which is in turn a subclass | 
|---|
| 71 | of QWSMouseHandler in <tt>embedded/qmouse_qws.cpp</tt>. | 
|---|
| 72 |  | 
|---|
| 73 | <!-- eof --> | 
|---|
| 74 | <p><address><hr><div align=center> | 
|---|
| 75 | <table width=100% cellspacing=0 border=0><tr> | 
|---|
| 76 | <td>Copyright © 2007 | 
|---|
| 77 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a> | 
|---|
| 78 | <td align=right><div align=right>Qt 3.3.8</div> | 
|---|
| 79 | </table></div></address></body> | 
|---|
| 80 | </html> | 
|---|