Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IInertiaProcessor::Reset method

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

Syntax


HRESULT Reset();

Parameters

This method has no parameters.

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]

Header

Manipulations.h (include Manipulations.h)

See also

Complete
IInertiaProcessor
Methods

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.