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.

InkManager.ProcessPointerUpdate | processPointerUpdate method

Applies to Windows only

Processes position and state properties, such as pressure and tilt, for the specified pointer, from the last pointer event up to and including the current pointer event.

Call this method after ProcessPointerDown and before ProcessPointerUp.

Important  This method is not supported in desktop apps.

Syntax


var object = inkManager.processPointerUpdate(pointerPoint);

Parameters

pointerPoint

Type: PointerPoint

The input pointer for which updates are to be processed.

Return value

Type: Object [JavaScript] | System.Object [.NET] | Platform::Object [C++]

When the current InkManipulationMode is Inking or Selecting, this method returns the Point (screen position in ink space) associated with the last ProcessPointerUpdate of pointerPoint.

When the current InkManipulationMode is Erasing and no strokes have been deleted, this method returns an invalid Rect (0,0,0,0). Otherwise, if a stroke has been deleted, this method returns an invalidated Rect.

Examples

The following example demonstrates a handler for an onmspointermove event.

Here, the unprocessed intermediate points (pts) since the last update are processed by the InkManager (inkManager) in the call to ProcessPointerUpdate.


function handlePointerMove(evt)
{
    try
    {
        evt.preventManipulation();
        if (evt.pointerId === penID)
        {
            var pt = evt.currentPoint;
            context.lineTo(pt.rawPosition.x, pt.rawPosition.y);
            context.stroke();
            var pts = evt.intermediatePoints;
            var i;
            for (i = pts.length - 1; i >= 0 ; i--)
            {
                inkManager.processPointerUpdate(pts[i]);
            }
        }
    }
    catch (e)
    {
        displayError("handlePointerMove " + e.toString());
    }
}

For the complete example, see Ink App sample.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

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

Metadata

Windows.winmd

See also

InkManager
Responding to pen and stylus input
Ink App sample

 

 

Show:
© 2014 Microsoft