This topic has not yet been rated - Rate this topic

IManipulationProcessor::ProcessDownWithTime method

Feeds touch down data, including a timestamp, to the manipulation processor associated with a target.

Syntax


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

Parameters

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.

Return value

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

Remarks

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

Examples


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

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Manipulations.h (include Manipulations_i.c)

See also

IManipulationProcessor
ProcessDown
ProcessMoveWithTime
ProcessUpWithTime
Methods

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.