In onEvent, replaced the boolean isLiveEvent parameter by a MXEventDirection direction parameter