TouchDeltaX()

Syntax

Result = TouchDeltaX(Finger)
Description
Returns the finger 'x' movement (in pixels) since the last call of this function.

Parameters

Finger The finger to get the value. Up to five fingers are supported at once, value can be between 0 and 4. TouchScreenPushed() can be used to know which fingers are currently on the screen.

Return value

The finger 'x' movement (in pixels) since the last call of this function. It can be either a negative or positive value, depending on whether or not the finger has been moved to left or right since the last call. ExamineTouchScreen() should be called before this function to update the actual finger position.

See Also

ExamineTouchScreen(), TouchDeltaY()

Supported OS

All

<- ExamineTouchScreen() - TouchScreen Index - TouchDeltaY() ->