![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_22.png)
Programmer’s Manual
Personal Portable System Manager
Programmer’s Manual
Pen Input Handling
4-1
Chapter 4
Pen Input Handling
The Pen Input Tools enable application to:
define active areas to control pen input
control ink echoing
Refer to
Section 6.2.2 - Screen Resolution
4.1
Active Area
Active area provides an easy method for applications to receive pen input
samples from the touch panel without the need to monitor the hardware
constantly. PPSM uses interrupt to perform pen sampling, maximizing processor’s
utilization.
An active area is defined as a rectangular region of the touch panel where
interrupt messages are generated to the creator task when the region is pressed.
An example of this is an icon, an action button, scratch pad or drawing area.
Active areas are only "active" for the task which the pen down has occurred until
the corresponding pen up. For example, a main task created active areas "A" and
"B", and one of its sub-task(
"C" and "D". When a user taps on active area "A"(i.e. a pen down on "A"), only
active areas "A" and "B", but not "C" nor "D", will receive messages if the pen
moves across them. By the same token, if pen down is made on "C", only "C" and
"D" will receive messages.
) created active areas
If active areas are overlapping, only the active areas of current task will be able to
receive pen messages.
There are two types of active areas, icon area and input area. Input area types
have three different modes of operation.
4.1.1
Icon Area
Icon area is for the purpose of selection only. When an icon area is pressed,
either from a pen-down or drag in from another area on the touch panel, PPSM
generates a soft interrupt and returns the active area identifier to the application.
Type
Mode
Description
ICON_AREA
N/A
Icon area has only one mode
INPUT_AREA
STROKE_MODE
Stroke input mode
CONTINUOUS_MODE
Pen position sampling mode
CONFINED_MODE
Strokes confined within the area
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.