Mercurial > hg > Members > tkaito > task_dandy
view ppe/TitleMove.cc @ 24:a131729d6e4d
not working.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 24 Nov 2010 19:24:04 +0900 |
parents | 3fb8a6a34e24 |
children | 34fde39c0a31 |
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, o_obj; i_obj = (ObjPropertyPtr)s->get_input(rbuf, 0); o_obj = (ObjPropertyPtr)s->get_output(wbuf, 0); int pad_id = (int)s->get_param(0); int size = (int)s->get_param(1); Pad *pad = (Pad*)s->pad(pad_id); if (pad->start.isPush && pad->start.isHold) { i_obj->flag = 1; } if ((pad->select.isPush && pad->select.isHold) && (pad->start.isPush && pad->start.isHold)) { i_obj->flag = 0; } s->swap(); return 0; }