Skip to main content
IDirectManipulationViewport::ReleaseContact method

Removes a contact that is associated with a viewport.

Syntax


HRESULT ReleaseContact(
  [in]  UINT32 pointerId
);

Parameters

pointerId [in]

The ID of the pointer.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method releases a contact from a specific Direct Manipulation viewport (equivalent to the user removing a touch point).

The viewport state is not affected unless the last remaining contact on the viewport is removed, in which case the viewport will transition to inertia, if supported.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationViewport is defined as 28b85a3d-60a0-48bd-9ba1-5ce8d9ea3a6d

See also

IDirectManipulationViewport