Home · All Classes · Grouped Classes · Annotated · Functions

Tutorial: Mouse Pointer Calibration

This tutorial describes how to calibrate a pointer for touch screen devices. For information about adding a new mouse driver see : Qtopia Core Pointer Handling.

Calibration

Qtopia contains built-in support for calibration but it is disabled by default on almost all platforms. To enable calibration support:

  1. Use a touch screen pointer driver that supports calibration, such as the TPanel driver.
  2. Add the QPE_NEED_CALIBRATION definition to the device-specific header for the build.

    This definition will add the Calibrate application to the devices settings list and enable calibration in the First Use application in the PDA edition. It can be omitted if neither is desirable.

  3. To support a calibrated touch screen, PrimaryInput=Touchscreen must included in the [Device] group of the defaultbuttons.conf see Device Profiles

To manually start the calibration on a Qtopia phone device, run:

    qcop service send Launcher "execute(QString)" "calibrate"


Copyright © 2007 Trolltech Trademarks
Qtopia 4.2.5