Author Topic: Guys what does the Callback id for OnTouch do  (Read 1165 times)

carlos.yalluh@gmail.com

  • Guest
Guys what does the Callback id for OnTouch do
« on: January 15, 2014, 07:39:41 am »
int OnTouch(int id,int event,int x, int y)
{
       printf("You touched the card!\n");
       return(id);
}

void AppMain()
{
       cn=ContainerAdd(0,10,10);
       ViewAdd(cn,"Cards/Card01.png",0,0,OnTouch,1);
}

It just seems completely useless to me!

carlos.yalluh@gmail.com

  • Guest
Re: Guys what does the Callback id for OnTouch do
« Reply #1 on: January 18, 2014, 03:29:10 am »
Nevermind I figured it out!! Actually very useful for my purposes !! =) =)