IDirectManipulationViewport::SetManualGesture method (directmanipulation.h)
Sets which gestures are ignored by Direct Manipulation.
Syntax
HRESULT SetManualGesture(
[in] DIRECTMANIPULATION_GESTURE_CONFIGURATION configuration
);
Parameters
[in] configuration
One of the values from DIRECTMANIPULATION_GESTURE_CONFIGURATION.
Return value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Use this method to specify which gestures the application processes on the UI thread. If a gesture is recognized, it will be passed to the application for processing and ignored by Direct Manipulation.
Examples
The following example shows how zoom gestures can be ignored by Direct Manipulation and handled by the application, which may have custom zoom behavior implementation.
HRESULT hr = pViewport->SetManualGesture(DIRECTMANIPULATION_GESTURE_PINCH_ZOOM);
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | directmanipulation.h |