Mercurial > hg > Members > tkaito > task_dandy
view ppe/TitleMove.cc @ 19:632ce41a842a
testing game task with pad's input
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 Aug 2010 03:37:36 +0900 |
parents | 2c188b2becec |
children | ec540ce4519d |
line wrap: on
line source
#include <stdio.h> #include "SchedTask.h" #include "TitleMove.h" #include "Joystick.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; }