Windows Dev Center

ProcessInertiaInteractionContext function

Sends timer input to the Interaction Context object for inertia processing.

Syntax


HRESULT WINAPI ProcessInertiaInteractionContext(
  _In_ HINTERACTIONCONTEXT interactionContext
);

Parameters

interactionContext [in]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Interactioncontext.h

Library

Ninput.lib

DLL

Ninput.dll

See also

Interaction Context Functions
HINTERACTIONCONTEXT

 

 

Community Additions

ADD
Show:
© 2015 Microsoft