IInertiaProcessor::Reset method (manipulations.h)
The Reset method initializes the processor with initial timestamp and restarts inertia.
Returns S_OK on success, otherwise returns an error code such as E_FAIL.
If you have changed properties on an object currently being manipulated by inertia, call Complete before calling Reset.
// 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
|Minimum supported client||Windows 7 [desktop apps only]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps only]|
|Header||manipulations.h (include Manipulations.h)|