gspWaitForEvent(): add nextEvent parameter; GSPEVENT_count -> '_MAX