Mercurial > MadButterfly
changeset 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 | 4a38e571cfce |
files | nodejs/X_supp_njs.h nodejs/mbfly_njs.cc nodejs/testcase.js |
diffstat | 3 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/X_supp_njs.h Fri Aug 06 22:56:58 2010 +0800 +++ b/nodejs/X_supp_njs.h Fri Aug 06 23:04:55 2010 +0800 @@ -22,5 +22,6 @@ #define X_njs_MB_tman(rt) X_MB_tman((rt)->xrt) #define X_njs_MB_ob_factory(rt) X_MB_ob_factory((rt)->xrt) #define X_njs_MB_img_ldr(rt) X_MB_img_ldr((rt)->xrt) +#define X_njs_MB_kbevents(rt) X_MB_kbevents((rt)->xrt) #endif /* __X_SUPP_NJS_H_ */
--- a/nodejs/mbfly_njs.cc Fri Aug 06 22:56:58 2010 +0800 +++ b/nodejs/mbfly_njs.cc Fri Aug 06 23:04:55 2010 +0800 @@ -65,9 +65,9 @@ X_njs_MB_init_handle_connection(obj); xnjsmb_coord_mkroot(self); - subject = X_MB_kbevents(obj->xrt); + subject = X_njs_MB_kbevents(obj); subject_o = export_xnjsmb_auto_subject_new(subject); - SET(self, "kbevent", subject_o); + SET(self, "kbevents", subject_o); return obj; }
--- a/nodejs/testcase.js Fri Aug 06 22:56:58 2010 +0800 +++ b/nodejs/testcase.js Fri Aug 06 23:04:55 2010 +0800 @@ -61,7 +61,7 @@ var kbobserver; /* Keyboard event */ -kbobserver = mb_rt.kbevent.add_event_observer(6, function(evt) { +kbobserver = mb_rt.kbevents.add_event_observer(6, function(evt) { sys.puts("keycode = " + evt.keycode); sys.puts("sym = " + evt.sym); });