comparison nodejs/mbfly_njs.cc @ 679:799c852b9065

Extract event info from C object to JS object
author Thinker K.F. Li <thinker@branda.to>
date Fri, 06 Aug 2010 19:31:37 +0800
parents f264b50c469c
children a588eefd3f04
comparison
equal deleted inserted replaced
678:40ba8915edc7 679:799c852b9065
85 root = (coord_t *)UNWRAP(root_o); 85 root = (coord_t *)UNWRAP(root_o);
86 subject = root->mouse_event; 86 subject = root->mouse_event;
87 subject_o = export_xnjsmb_auto_subject_new(subject); 87 subject_o = export_xnjsmb_auto_subject_new(subject);
88 SET(root_o, "subject", subject_o); 88 SET(root_o, "subject", subject_o);
89 89
90 subject = X_MB_kbevents(obj->xrt);
91 subject_o = export_xnjsmb_auto_subject_new(subject);
92 SET(self, "kbevent", subject_o);
93
90 return obj; 94 return obj;
91 } 95 }
92 96
93 /*! \defgroup njs_template_cb Callback functions for v8 engine and nodejs. 97 /*! \defgroup njs_template_cb Callback functions for v8 engine and nodejs.
94 * 98 *