IManipulationProcessor::ProcessMoveWithTime Method

Feeds movement data, including a time stamp, for the target object to its manipulation processor.

Syntax

HRESULT ProcessMoveWithTime(
  MANIPULATOR_ID manipulatorId,
  FLOAT x,
  FLOAT y,
  DWORD timestamp
);

Parameter

manipulatorId

The identifier for the touch contact to be processed.

x

The horizontal coordinate data associated with the target.

y

The vertical coordinate data associated with the target.

timestamp

The time of the data event.

Rückgabewert

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code such as E_FAIL.

Hinweise

It is possible to receive touch events out of the order they were produced. To fix this, you should extract the time stamp from the TOUCHINPUT structure when you process events.

Beispiele



static void ProcessMove(TOUCHINPUT* pTouchInput, IManipulationProcessor* pManipulationProcessor){
  pManipulationProcessor->ProcessMoveWithTime(
    pTouchInput->dwID, 
    static_cast<float>(pTouchInput->x), 
    static_cast<float>(pTouchInput->y), 
    pTouchInput->dwTime
  );
}
      

Anforderungen

Mindestens unterstützter Client

Windows 7

Mindestens unterstützter Server

Windows Server 2008 R2

Header

Manipulations.h (include Manipulations_i.c)

Siehe auch

ProcessMove
ProcessDownWithTime
ProcessUpWithTime
IManipulationProcessor
Methods

 

 

Anzeigen: