moved MOUSEMASK into event.c (not used in other places)