Fixed getCursor bug, added functions for event processors