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

This topic has not yet been rated - Rate this topic

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 built for Windows using C++, C#, or Visual Basic, or Windows Store apps built for Windows 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.

Windows Phone 8

This API is not implemented and will throw an exception if called.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

See also

PointerPoint
GetCurrentPoint(UInt32, IPointerPointTransform)

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.