Mercurial > MadButterfly
comparison nodejs/testcase.js @ 681:b601a4d6f7d1
Change kbevent to kbevents and hide X_MB_kbevents()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 06 Aug 2010 23:04:55 +0800 |
parents | a588eefd3f04 |
children | 86c6ebf1de25 |
comparison
equal
deleted
inserted
replaced
680:a588eefd3f04 | 681:b601a4d6f7d1 |
---|---|
59 sys.puts("mouse " + evt.x + " " + evt.y); | 59 sys.puts("mouse " + evt.x + " " + evt.y); |
60 }); | 60 }); |
61 | 61 |
62 var kbobserver; | 62 var kbobserver; |
63 /* Keyboard event */ | 63 /* Keyboard event */ |
64 kbobserver = mb_rt.kbevent.add_event_observer(6, function(evt) { | 64 kbobserver = mb_rt.kbevents.add_event_observer(6, function(evt) { |
65 sys.puts("keycode = " + evt.keycode); | 65 sys.puts("keycode = " + evt.keycode); |
66 sys.puts("sym = " + evt.sym); | 66 sys.puts("sym = " + evt.sym); |
67 }); | 67 }); |