diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ppe/TitleMove.cc.orig	Fri Dec 10 02:57:29 2010 +0900
@@ -0,0 +1,28 @@
+#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)
+{
+  Pad* pad;
+  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);
+  pad = (Pad*)s->global_get(pad_id);
+  
+  if(pad->start.isPush() || pad->start.isHold()) {
+      printf("success \n");
+  }
+  
+  s->swap();
+  
+  return 0;
+}