ValidEvent
if (ValidEvent(ep) && ValidEvent(next)
if (!ValidEvent(ep)) {
} else if (!ValidEvent(next)) {
if (!ValidEvent(ep)) {
if (ValidEvent(ep))
return ValidEvent(ep) && ((ep->bstate & sp->_mouse_mask) != 0);
while (ValidEvent(prev) && (!(prev->bstate & SP_PARM->_mouse_mask2))) {
if (ValidEvent(prev)) {