Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PointerPoint.GetCurrentPoint(UInt32) | getCurrentPoint(UInt32) method

Applies to Windows and Windows Phone

Retrieves position and state information for the specified pointer.

In most cases, we recommend that you obtain pointer info through the pointer event handlers of your chosen Windows 8 language framework (Windows Store apps using JavaScript, Windows Store apps using C++, C#, or Visual Basic, or Windows Store apps using DirectX with C++).

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 static PointerPoint methods, GetCurrentPoint and GetIntermediatePoints, always use the context of the app.

Syntax


var pointerPoint = Windows.UI.Input.PointerPoint.getCurrentPoint(pointerId);

Parameters

pointerId

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The ID of the pointer.

Return value

Type: PointerPoint

The pointer property values.

Remarks

GetCurrentPoint is a static method.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.winmd

See also

PointerPoint
GetCurrentPoint(UInt32, IPointerPointTransform)

 

 

Show:
© 2014 Microsoft