int TouchSetxy(int tc, int x, int y);

 

Sets the x and y coordinates of a touch area.

 

Return Value

 

Return value not used.

 

Parameters

 

tc

Touch handle returned from TouchAdd().

 

Remarks

 

The TouchSetxy() function sets the x, y coordinates of the touch area.

 

Availability

 

Available in DragonFireSDK 1.0 and later.

 

Example

 

Description: This example will set the x, y coordinates of the touch area.

 

#include "DragonFireSDK.h"

 

int OnTouchArea(int id, int event, int x, int y);     //event: 1=down, 2=move, 3=up

 

void AppMain()

{

  int tc;

  int x;

  int y;

 

  x = 200;

  y = 300;

 

  tc = TouchAdd(0, 0, 100, 200, OnTouchArea, 0);

  TouchSetxy(tc, x, y);

}

 

int OnTouchArea(int id, int event, int x, int y)

{

  // Handle the touch event.

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

 

}