Mercurial > hg > Members > tkaito > task_dandy
view ppe/TitleMove.cc @ 20:ec540ce4519d
mini change.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 20 Sep 2010 20:56:31 +0900 |
parents | 632ce41a842a |
children | fd9deaa67de9 |
line wrap: on
line source
#include <stdio.h> #include "SchedTask.h" #include "TitleMove.h" #include "Pad.h" #include "Func.h" /* これは必須 */ SchedDefineTask1(TitleMove, titlemove); static int titlemove(SchedTask *s,void *rbuf, void *wbuf) { Pad* pad; ObjPropertyPtr i_obj, o_obj; i_obj = (ObjPropertyPtr)s->get_input(rbuf, 0); pad = (Pad*)s->get_input(rbuf, 1); o_obj = (ObjPropertyPtr)s->get_output(wbuf, 0); if(pad->start.isPush() || pad->start.isHold()) { i_obj->flag = 1; } o_obj->flag = i_obj->flag; return 0; }