diff nodejs/testdesktop.js @ 826:94041f085797

Merge from main stream
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 14 Sep 2010 05:55:30 +0800
parents 586e50f82c1f
children 2101a355acba
line wrap: on
line diff
--- a/nodejs/testdesktop.js	Tue Sep 14 05:44:48 2010 +0800
+++ b/nodejs/testdesktop.js	Tue Sep 14 05:55:30 2010 +0800
@@ -1,4 +1,5 @@
-// vim: ts=4
+// -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*-
+// vim: sw=4:ts=8:sts=4
 var svg = require("./svg");
 var mbapp = require("./mbapp");
 var sys=require("sys");
@@ -16,8 +17,11 @@
 item = 0;
 an = new animate.scale(app,items[item],1,1.5,0.1);
 an.start();
+setInterval(function() {
+    
 
-app.addKeyListener(mbapp.KEY_UP, function() {
+}, 300);
+app.addKeyListener(mbapp.KEY_LEFT, function() {
 	var old = items[item];
 	item = item - 1;
 	if (item == -1) {
@@ -31,7 +35,7 @@
     an.start();
 });
 
-app.addKeyListener(mbapp.KEY_DOWN, function() {
+app.addKeyListener(mbapp.KEY_RIGHT, function() {
 	var old = items[item];
 	item = item + 1;
 	if (item == items.length) {