Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
User Interaction
Touch Input
Methods
 _IManipulationEvents::ManipulationS...
_IManipulationEvents::ManipulationStarted method

Applies to: desktop apps only

Handles the event for when manipulation or inertia begins.

Syntax

HRESULT ManipulationStarted(
  [in]  FLOAT x,
  [in]  FLOAT y
);

Parameters

x [in]

The origin x-coordinate in user-defined coordinates.

y [in]

The origin y-coordinate in user-defined coordinates.

Return value

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Remarks

Manipulation events are generated for both the IInertiaProcessor and IManipulationProcessor interfaces. If you are using the values from the TOUCHINPUT structure in calls to ProcessDown, the coordinates will be in hundredths of a pixel.

Examples

The following code shows an implementation of the ManipulationStarted method.

C++

HRESULT STDMETHODCALLTYPE CManipulationEventSink::ManipulationStarted( 
    /* [in] */ FLOAT x,
    /* [in] */ FLOAT y)
{
    m_cStartedEventCount ++;

    // place your code handler here to do any operations based on the manipulation

    return S_OK;
}
    
    

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Manipulations.h (include Manipulations.h)

See also

Adding Manipulation Support to Unmanaged Code
Handling Inertia in Unmanaged Code
_IManipulationEvents
Methods

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker