SetPivotInteractionContext function (interactioncontext.h)

Sets the center point, and the pivot radius from the center point, for a rotation manipulation using a single input pointer.


HRESULT SetPivotInteractionContext(
  [in] HINTERACTIONCONTEXT interactionContext,
  [in] float               x,
  [in] float               y,
  [in] float               radius


[in] interactionContext

Pointer to a handle for the Interaction Context.

[in] x

The x-coordinate for the screen location of the center point.

[in] y

The y-coordinate for the screen location of the center point.

[in] radius

The offset between the center point and the single input pointer, in HIMETRIC units.

Return value

If this function succeeds, it returns S_OK.

Otherwise, it returns an HRESULT error code.


Minimum supported client Windows 8 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header interactioncontext.h
Library Ninput.lib
DLL Ninput.dll

See also


Interaction Context Functions