> std::string funcname = key_event_type.get_function_name(); > + // There is no user defined "onKeyPress" event handler > + if( ( funcname != "onKeyDown") && (funcname != "onKeyUp") ) > + return; > +Just a tought: 1) comparing the event_id would be faster (ints rather then strings) 2) would it be worth to have get_function_name() return empty() for the events that have no corresponding user-defined handler ?
yes, you are right. I will change to compare the event_id. _______________________________________________ Gnash-commit mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnash-commit
