IInertiaProcessor::Reset method (manipulations.h)

The Reset method initializes the processor with initial timestamp and restarts inertia.

Syntax

HRESULT Reset();

Return value

Returns S_OK on success, otherwise returns an error code such as E_FAIL.

Remarks

If you have changed properties on an object currently being manipulated by inertia, call Complete before calling Reset.

Examples


    // set properties on the IInertiaProcessor interface
    this->m_spIInertProc->put_DesiredRotation(spin);    
	 
    // complete any unprocessed inertia
    this->m_spIInertProc->Complete();
	 
    // reset the processor
    this->m_spIInertProc->Reset();		  
	 
    // If you have implemented a timer that handles inertia processing,
    // this should be started as well and the processor will raise
    // Manipulation* events
		  

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header manipulations.h (include Manipulations.h)

See also

Complete

IInertiaProcessor

Methods