diff Renderer/Engine/spe/UpdateKey.cc @ 539:3bc98f6d31ff draft

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents
children eb6add789a24
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Renderer/Engine/spe/UpdateKey.cc	Mon Oct 12 09:39:35 2009 +0900
@@ -0,0 +1,16 @@
+#include "TaskManager.h"
+#include "KeyStat.h"
+#include "UpdateKey.h"
+#include "global_alloc.h"
+
+SchedDefineTask(UpdateKey);
+
+static int 
+run(SchedTask *smanager, void *rbuf, void *wbuf)
+{
+    key_stat *key = (key_stat*)smanager->get_input(rbuf, 0);
+    key_stat *gdata = (key_stat*)smanager->global_get(KEY_STATUS); 
+    memcpy(gdata, key, sizeof(key_stat));
+
+    return 0;
+}