diff nodejs/testdesktop.js @ 820:7875e8026e86

Change the key from up/down to left/right
author wycc
date Fri, 10 Sep 2010 08:33:07 +0800
parents f84ccf1f59ae
children 586e50f82c1f
line wrap: on
line diff
--- a/nodejs/testdesktop.js	Fri Sep 10 00:11:38 2010 +0800
+++ b/nodejs/testdesktop.js	Fri Sep 10 08:33:07 2010 +0800
@@ -16,8 +16,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 +34,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) {