void CursorWorldListener::afterEventProcessing(float timeslice) { if (!mHoverEventSent) { mCursorLingerStart += timeslice * 1000; if (mCursorLingerStart > 500) { sendHoverEvent(); } } if (isInGUIMode()) { if (mMousePressedStart != 0) { if ((Time::currentTimeMillis() - mMousePressedStart) > mClickThresholdMilliseconds) { mMousePressedStart = 0; sendWorldClick(MPT_PRESSED, CEGUI::MouseCursor::getSingleton().getPosition()); } } } }
void CursorWorldListener::afterEventProcessing(float timeslice) { if (!mHoverEventSent) { mCursorLingerStart += timeslice * 1000; if (mCursorLingerStart > 500) { sendHoverEvent(); } } if (isInGUIMode()) { if (mMousePressedTimeFrame) { if (!mMousePressedTimeFrame->isTimeLeft()) { delete mMousePressedTimeFrame; mMousePressedTimeFrame = 0; sendWorldClick(MPT_PRESSED, CEGUI::MouseCursor::getSingleton().getPosition()); } } } }