Adds the specified function to the list of functions to be called when an event of type event_type occurs.
the listener to notify
the type of event for which notification is requested
added event listener id, or 0 on failure.
See Implementation
Adds the specified function to the list of functions to be called when an event of type event_type occurs.