다음을 통해 공유


IInertiaProcessor::Reset 메서드(manipulations.h)

Reset 메서드는 초기 타임스탬프를 사용하여 프로세서를 초기화하고 관성 을 다시 시작합니다.

구문

HRESULT Reset();

반환 값

성공하면 S_OK 반환하고, 그렇지 않으면 E_FAIL 같은 오류 코드를 반환합니다.

설명

현재 관성에서 조작 중인 개체의 속성을 변경한 경우 Reset을 호출하기 전에 Complete 를 호출 합니다.

예제


    // 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
		  

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows 7 [데스크톱 앱만 해당]
지원되는 최소 서버 Windows Server 2008 R2 [데스크톱 앱만 해당]
대상 플랫폼 Windows
헤더 manipulations.h(Manipulations.h 포함)

추가 정보

완료

IInertiaProcessor

메서드