comparison nodejs/testsvg.js @ 724:503f3d18248e

Add symbolic name of event types.
author wycc
date Mon, 16 Aug 2010 07:32:56 +0800
parents f95d58a8edd1
children d479f319d7b7
comparison
equal deleted inserted replaced
722:f95d58a8edd1 724:503f3d18248e
32 obj.animated_loc = target[5]; 32 obj.animated_loc = target[5];
33 obj.animated_end = 0; 33 obj.animated_end = 0;
34 animated(app,obj); 34 animated(app,obj);
35 } 35 }
36 lightbar.animated_loc = 1; 36 lightbar.animated_loc = 1;
37 app.addKeyboardListener(6, function(evt) { 37 app.addKeyboardListener(mbapp.EVT_KB_PRESS, function(evt) {
38 if (evt.keycode == mbapp.KEY_UP) { 38 if (evt.keycode == mbapp.KEY_UP) {
39 item = item - 1; 39 item = item - 1;
40 if (item == 0) item = 1; 40 if (item == 0) item = 1;
41 else 41 else
42 animated_start(app,lightbar,app.get("item"+item)); 42 animated_start(app,lightbar,app.get("item"+item));