// WaitEvent waits indefinitely for the next available event.
// (https://wiki.libsdl.org/SDL_WaitEvent)
WaitEvent waits indefinitely for the next available event.
// WaitEvent waits indefinitely for the next available event . // ( https : // wiki . libsdl . org / SDL_WaitEvent )
func WaitEvent() Event {
	var cevent CEvent
	_event := (*C.SDL_Event)(unsafe.Pointer(&cevent))
	ok := int(C.SDL_WaitEvent(_event))
	if ok == 0 {
		return nil
	}
	return goEvent(&cevent)
}
func WaitEvent ( ) Event { var cevent CEvent _event := ( * C . SDL_Event ) ( unsafe . Pointer ( & cevent ) ) ok := int ( C . SDL_WaitEvent ( _event ) ) if ok == 0 { return nil } return goEvent ( & cevent ) }
WaitEvent waits indefinitely for the next available event.
WaitEvent waits indefinitely for the next available event .