Function EventDispatcher.onUserEvent

Called when a user event is received.

void onUserEvent(
  int code,
  void* payload
);