Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 6.26 KB

pointerpoint.md

File metadata and controls

42 lines (25 loc) · 6.26 KB
-api-id -api-type
T:Windows.UI.Input.PointerPoint
winrt class

Windows.UI.Input.PointerPoint

-description

Provides basic properties for the input pointer associated with a single mouse, pen/stylus, or touch contact.

-remarks

The PointerPoint class implements IPointerPoint.

See PointerPointProperties for extended properties accessible through Properties.

In most cases, we recommend that you get pointer info through the event argument of the pointer event handlers in your chosen language framework.

If the event argument doesn't intrinsically expose the pointer details required by your app, you can get access to extended pointer data through the GetCurrentPoint and GetIntermediatePoints methods of PointerRoutedEventArgs. Use these methods to specify the context of the pointer data.

The static PointerPoint methods, GetCurrentPoint and GetIntermediatePoints, always use the app context.

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).

-examples

In the following example, we query various pointer properties using a PointerPoint object.

[!code-csharpQueryPointer]

[!code-csharpQueryPointer]

-see-also

Windows.UI.Input Classes, Windows.Devices.Input, Windows.UI.Core, Windows.UI.Input, Windows.UI.Input.Inking, Windows.UI.Xaml.Input, TypedEventHandler, Custom user interactions, UX guidelines for custom user interactions, Touch design guidelines, User interaction mode sample, Focus visuals sample, Input: Device capabilities sample, Input: Simplified ink sample, Input: Windows 8 gestures sample, Input: XAML user input events sample, XAML scrolling, panning, and zooming sample, DirectX touch input sample, Input: Manipulations and gestures (C++) sample, Input: Touch hit testing sample, Input source identification sample, Touch injection sample, Win32 touch hit-testing sample, Basic input sample (Windows 10)