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.
Syntax
HRESULT SetPivotInteractionContext(
[in] HINTERACTIONCONTEXT interactionContext,
[in] float x,
[in] float y,
[in] float radius
);
Parameters
[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.
Requirements
Requirement | Value |
---|---|
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for