Package ej.event

Interface EventQueueListener

    • Method Detail

      • handleEvent

        void handleEvent​(int type,
                         int data)
        Handles an event.

        This method is called by the queue when an event with the right type is read.

        Parameters:
        type - the type of the event to handle.
        data - the data of the event to handle.
      • handleExtendedEvent

        void handleExtendedEvent​(int type,
                                 EventDataReader eventDataReader)
        Handles an extended event.

        This method is called by the queue when an extended event with the right type is read.

        Parameters:
        type - the type of the event to handle.
        eventDataReader - the EventDataReader of the event to handle.