INTERACTION_CONTEXT_OUTPUT2 structure (interactioncontext.h)

Defines the output of the Interaction Context object.

Syntax

typedef struct INTERACTION_CONTEXT_OUTPUT2 {
  INTERACTION_ID     interactionId;
  INTERACTION_FLAGS  interactionFlags;
  POINTER_INPUT_TYPE inputType;
  UINT32             contactCount;
  UINT32             currentContactCount;
  float              x;
  float              y;
  union {
    INTERACTION_ARGUMENTS_MANIPULATION manipulation;
    INTERACTION_ARGUMENTS_TAP          tap;
    INTERACTION_ARGUMENTS_CROSS_SLIDE  crossSlide;
  } arguments;
} INTERACTION_CONTEXT_OUTPUT2;

Members

interactionId

ID of the Interaction Context object.

interactionFlags

One of the constants from INTERACTION_FLAGS enumeration.

inputType

One of the constants from POINTER_INPUT_TYPE enumeration.

contactCount

The number of contacts that can be recognized.

currentContactCount

The number of current contacts.

x

The x-coordinate of the input pointer, in HIMETRIC units.

y

The y-coordinate of the input pointer, in HIMETRIC units.

arguments

Union of arguments sub-fields.

arguments.manipulation

The state of the manipulation.

arguments.tap

The state of the tap gesture.

arguments.crossSlide

The state of the cross-slide interaction.

Remarks

Provides enhanced gesture recognition support compared to the INTERACTION_CONTEXT_OUTPUT structure.

Requirements

Requirement Value
Minimum supported client Windows 10 version 21H1
Minimum supported server Windows Server 2022
Header interactioncontext.h

See also

INTERACTION_ARGUMENTS_CROSS_SLIDE structure

INTERACTION_ARGUMENTS_MANIPULATION structure

INTERACTION_ARGUMENTS_TAP structure

INTERACTION_CONTEXT_OUTPUT_CALLBACK callback function

INTERACTION_CONTEXT_OUTPUT_CALLBACK2 callback function

INTERACTION_FLAGS enumeration

RegisterOutputCallbackInteractionContext function

RegisterOutputCallbackInteractionContext2 function