PC Form Factors have evolved.
Key platform APIs Win32 apps Windows kernel services Input and InteractionRendering and composition Input and interaction
Button 1 Button 2
void INTERACTION_CONTEXT_OUTPUT_CALLBACK( _In_opt_ void *clientData, _In_ const INTERACTION_CONTEXT_OUTPUT *output );
typedef struct INTERACTION_CONTEXT_OUTPUT { INTERACTION_ID interactionId; INTERACTION_FLAGS interactionFlags; POINTER_INPUT_TYPE inputType; float x; float y; union { INTERACTION_ARGUMENTS_MANIPULATION manipulation; INTERACTION_ARGUMENTS_TAP tap; INTERACTION_ARGUMENTS_CROSS_SLIDE crossSlide; } arguments; } INTERACTION_CONTEXT_OUTPUT; InteractionContext – Output structures
typedef struct INTERACTION_ARGUMENTS_MANIPULATION { MANIPULATION_TRANSFORM delta; MANIPULATION_TRANSFORM cumulative; MANIPULATION_VELOCITY velocity; MANIPULATION_RAILS_STATE railsState; } INTERACTION_ARGUMENTS_MANIPULATION; InteractionContext – Output structures
Harness the power of Windows with DirectComposition