Function EventListener.generateUserEvent

Queues a user event with the given code and payload pointer.

void generateUserEvent(
  int code,
  void* payload = null
);

Parameters

NameDescription
code User event code.
payload Optional pointer to arbitrary data to be passed with the event.