bool CEventHandler::MouseWheel(bool up, float value) { // reverse order, user has the override const int count = listMouseWheel.size(); for (int i = (count - 1); i >= 0; i--) { CEventClient* ec = listMouseWheel[i]; if (ec->MouseWheel(up, value)) { return true; } } return false; }
bool CEventHandler::MouseWheel(bool up, float value) { EVENTHANDLER_CHECK(MouseWheel, false); // reverse order, user has the override for (int i = (count - 1); i >= 0; i--) { CEventClient* ec = listMouseWheel[i]; if (ec->MouseWheel(up, value)) { return true; } } return false; }