int id = GUIUtility.hotControl; EventType type = Event.current.GetTypeForControl(id); switch(type) { case EventType.MouseDown: ...