ProcessInertiaInteractionContext function (interactioncontext.h)
Sends timer input to the Interaction Context object for inertia processing.
Syntax
HRESULT ProcessInertiaInteractionContext(
[in] HINTERACTIONCONTEXT interactionContext
);
Parameters
[in] interactionContext
Pointer to a handle for the Interaction Context.
Return value
If this function succeeds, it returns S_OK.
Otherwise, it returns an HRESULT error code.
Remarks
The caller is responsible for creating timer when inertia starts, and for driving inertia input with the timer by calling this function from the timer callback. Recommended timer period is 15 ms.
This function has no effect outside inertia.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | interactioncontext.h |
Library | Ninput.lib |
DLL | Ninput.dll |