Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines basic pen information common to all pointer types.
Syntax
typedef struct tagPOINTER_PEN_INFO {
POINTER_INFO pointerInfo;
PEN_FLAGS penFlags;
PEN_MASK penMask;
UINT32 pressure;
UINT32 rotation;
INT32 tiltX;
INT32 tiltY;
} POINTER_PEN_INFO;
Members
pointerInfo
Type: POINTER_INFO
An embedded POINTER_INFO structure.
penFlags
Type: PEN_FLAGS
The pen flag. This member can be zero or any reasonable combination of the values from the Pen Flags constants.
penMask
Type: PEN_MASK
The pen mask. This member can be zero or any reasonable combination of the values from the Pen Mask constants.
pressure
Type: UINT32
A pen pressure normalized to a range between 0 and 1024. The default is 0 if the device does not report pressure.
rotation
Type: UINT32
The clockwise rotation, or twist, of the pointer normalized in a range of 0 to 359. The default is 0.
tiltX
Type: INT32
The angle of tilt of the pointer along the x-axis in a range of -90 to +90, with a positive value indicating a tilt to the right. The default is 0.
tiltY
Type: INT32
The angle of tilt of the pointer along the y-axis in a range of -90 to +90, with a positive value indicating a tilt toward the user. The default is 0.
Remarks
Applications can retrieve this information using the GetPointerPenInfo, GetPointerFramePenInfo, GetPointerPenInfoHistory and GetPointerFramePenInfoHistory API functions.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Header | winuser.h (include Windows.h) |