Mercurial > hg > Members > tkaito > task_dandy
view ppe/TitleMove.cc @ 27:34fde39c0a31
commit test.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 10 Dec 2010 02:57:29 +0900 |
parents | 6bea374ee604 a131729d6e4d |
children |
line wrap: on
line source
#include <stdio.h> #include "SchedTask.h" #include "Property.h" #include "Pad.h" #include "Func.h" /* これは必須 */ SchedDefineTask1(TitleMove, titlemove); static int titlemove(SchedTask *s,void *rbuf, void *wbuf) { ObjPropertyPtr i_obj = (ObjPropertyPtr)s->get_input(rbuf, 0); int pad_id = (int)s->get_param(0); Pad *pad = (Pad*)s->global_get(pad_id); if(pad->start.isPush() || pad->start.isHold()) { printf("success \n"); } s->swap(); return 0; }