annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
1 #include <stdio.h>
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
2 #include "SchedTask.h"
21
fd9deaa67de9 debug done.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 20
diff changeset
3 #include "Property.h"
20
ec540ce4519d mini change.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 19
diff changeset
4 #include "Pad.h"
1
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
5 #include "Func.h"
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
6
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
7 /* これは必須 */
6
661ec1e92042 set_game_task move to API(SceneGrapRoot).
tkaito
parents: 4
diff changeset
8 SchedDefineTask1(TitleMove, titlemove);
1
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
9
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
10 static int
6
661ec1e92042 set_game_task move to API(SceneGrapRoot).
tkaito
parents: 4
diff changeset
11 titlemove(SchedTask *s,void *rbuf, void *wbuf)
1
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
12 {
27
34fde39c0a31 commit test.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 26 24
diff changeset
13 ObjPropertyPtr i_obj = (ObjPropertyPtr)s->get_input(rbuf, 0);
24
a131729d6e4d not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
14 int pad_id = (int)s->get_param(0);
27
34fde39c0a31 commit test.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 26 24
diff changeset
15 Pad *pad = (Pad*)s->global_get(pad_id);
24
a131729d6e4d not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
16
27
34fde39c0a31 commit test.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 26 24
diff changeset
17 if(pad->start.isPush() || pad->start.isHold()) {
34fde39c0a31 commit test.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 26 24
diff changeset
18 printf("success \n");
24
a131729d6e4d not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
19 }
a131729d6e4d not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
20
a131729d6e4d not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
21 s->swap();
a131729d6e4d not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
22
a131729d6e4d not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 23
diff changeset
23 return 0;
1
7dc2d920fc7c local update. xml,image, blender add. ppe/move, ppe/coll add.
tkaito
parents:
diff changeset
24 }