Mercurial > hg > Members > tkaito > task_dandy
comparison ppe/TitleMove.cc.orig @ 27:34fde39c0a31
commit test.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 10 Dec 2010 02:57:29 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
26:6bea374ee604 | 27:34fde39c0a31 |
---|---|
1 #include <stdio.h> | |
2 #include "SchedTask.h" | |
3 #include "Property.h" | |
4 #include "Pad.h" | |
5 #include "Func.h" | |
6 | |
7 /* これは必須 */ | |
8 SchedDefineTask1(TitleMove, titlemove); | |
9 | |
10 static int | |
11 titlemove(SchedTask *s,void *rbuf, void *wbuf) | |
12 { | |
13 Pad* pad; | |
14 ObjPropertyPtr i_obj, o_obj; | |
15 | |
16 i_obj = (ObjPropertyPtr)s->get_input(rbuf, 0); | |
17 o_obj = (ObjPropertyPtr)s->get_output(wbuf, 0); | |
18 int pad_id = (int)s->get_param(0); | |
19 pad = (Pad*)s->global_get(pad_id); | |
20 | |
21 if(pad->start.isPush() || pad->start.isHold()) { | |
22 printf("success \n"); | |
23 } | |
24 | |
25 s->swap(); | |
26 | |
27 return 0; | |
28 } |