PENPACKET
1.0 2.0
A pen packet
used by Pen Windows, version 1.0, consisting of the information received from
the pen device for a single sample. For a definition of pen packet, see SetPenHook
typedef struct {
UINT
wTabletX;
UINT wTabletY;
UINT wPDK;
UINT rgwOemData[MAXOEMDATAWORDS];
} PENPACKET;
Members
wTabletX
The
x-dimension in raw tablet coordinates.
wTabletY
The
y-dimension in raw tablet coordinates.
wPDK
Pen hardware
state bits, expressed as a combination of PDK_ values.
rgwOemData[MAXOEMDATAWORDS]
Array of
OEM-specific data. MAXOEMDATAWORDS is defined as 6.
Comments
A pen packet
is the basic unit of communication between the pen driver and Windows. A pen
packet contains all of the information about a single logical event: x-y
coordinate position, button states, and any optional information such as
pressure or barrel rotation. Several physical events that is, interrupts may be needed to construct a single logical event.
The rgwOemData
member contains the real-time values associated with the pen data types
described in the entry for the OEMPENINFO
See Also