// SetEventFilter sets up a filter to process all events before they change internal state and are posted to the internal event queue.
// (https://wiki.libsdl.org/SDL_SetEventFilter)
SetEventFilter sets up a filter to process all events before they change internal state and are posted to the internal event queue.
// SetEventFilter sets up a filter to process all events before they change internal state and are posted to the internal event queue . // ( https : // wiki . libsdl . org / SDL_SetEventFilter )
func SetEventFilter(filter EventFilter, userdata interface{}) {
	if eventFilterCache == nil && filter == nil {
		return
	}
	if eventFilterCache == nil && filter != nil {
		C.setEventFilter()
	} else if eventFilterCache != nil && filter == nil {
		C.clearEventFilter()
	}
	eventFilterCache = filter
}
func SetEventFilter ( filter EventFilter , userdata interface { } ) { if eventFilterCache == nil && filter == nil { return } if eventFilterCache == nil && filter != nil { C . setEventFilter ( ) } else if eventFilterCache != nil && filter == nil { C . clearEventFilter ( ) } eventFilterCache = filter }
SetEventFilter sets up a filter to process all events before they change internal state and are posted to the internal event queue.
SetEventFilter sets up a filter to process all events before they change internal state and are posted to the internal event queue .
// nothing to do... // We had no event filter before and do now; lets set // goSetEventFilterCallback() as the event filter. // We had an event filter before, but no longer do, lets clear the // event filter