Provides basic properties for the input pointer associated with a single mouse, pen/stylus, or touch contact.
If the event argument doesn't expose the pointer details required by your app, you can get access to extended pointer data from the event argument through the getCurrentPoint and getIntermediatePoints methods or currentPoint and intermediatePoints properties. We recommend using the getCurrentPoint and getIntermediatePoints methods as you can specify the context of the pointer data.
The PointerPoint class has these types of members:
The PointerPoint class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|GetCurrentPoint(UInt32)||Retrieves position and state information for the specified pointer.|
|GetCurrentPoint(UInt32, IPointerPointTransform)||Retrieves the transformed information for the specified pointer.|
|GetIntermediatePoints(UInt32)||Retrieves position and state information for the specified pointer, from the last pointer event up to and including the current pointer event.|
|GetIntermediatePoints(UInt32, IPointerPointTransform)||Retrieves the transformed position and state information for the specified pointer, from the last pointer event up to and including the current pointer event.|
The PointerPoint class has these properties.
|Read-only||Gets the ID of an input frame.|
|Read-only||Gets a value that indicates whether the physical entity (touch, pen/stylus, or mouse button) is pressed down.|
|Read-only||Gets information about the device associated with the input pointer.|
|Read-only||Gets a unique identifier for the input pointer.|
|Read-only||Gets the location of the pointer input in client coordinates.|
|Read-only||Gets extended information about the input pointer.|
|Read-only||Gets the raw location of the pointer input in client coordinates.|
|Read-only||Gets the time when the input occurred.|
The PointerPoint class implements IPointerPoint.
Note : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).
In the following example, we query various pointer properties using a PointerPoint object.
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|
Minimum supported phone
|Windows Phone 8|
- Windows.UI.Input Classes
- Responding to user interaction
- Guidelines for common user interactions
- Touch interaction design
- Samples (DOM)
- HTML scrolling, panning and zooming sample
- Input: DOM pointer event handling sample
- Input: Instantiable gestures sample
- Samples (Windows Store app APIs)
- Input: Device capabilities sample
- Input: Ink sample
- Input: Simplified ink sample
- Input: Windows 8 gestures sample
- Input: XAML user input events sample
- XAML scrolling, panning, and zooming sample
- Samples (DirectX)
- DirectX touch input sample
- Input: Manipulations and gestures (C++) sample
- Input: Touch hit testing sample
- Samples (Win32/Desktop)
- Input source identification sample
- Touch injection sample
- Win32 touch hit-testing sample