Mercurial > MadButterfly
comparison nodejs/mbapp.js @ 729:299ed9319dc6
Use key symbols instead of keycodes.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 17 Aug 2010 10:36:36 +0800 |
parents | 503f3d18248e |
children | e77ae2d23245 |
comparison
equal
deleted
inserted
replaced
728:a843f147c995 | 729:299ed9319dc6 |
---|---|
30 } | 30 } |
31 | 31 |
32 exports.app=app; | 32 exports.app=app; |
33 | 33 |
34 // Put all key definition here | 34 // Put all key definition here |
35 exports.KEY_UP = 111; | 35 exports.KEY_UP = 0xff52; |
36 exports.KEY_DOWN=116; | 36 exports.KEY_DOWN = 0xff54; |
37 exports.EVT_ANY=0; | 37 exports.EVT_ANY=0; |
38 exports.EVT_MOUSE_OVER=1; | 38 exports.EVT_MOUSE_OVER=1; |
39 exports.EVT_MOUSE_OUT=2; | 39 exports.EVT_MOUSE_OUT=2; |
40 exports.EVT_MOUSE_MOVE=3; | 40 exports.EVT_MOUSE_MOVE=3; |
41 exports.EVT_MOUSE_BUT_PRESS4; | 41 exports.EVT_MOUSE_BUT_PRESS4; |