func GetEventFilter() (EventFilter, interface{}) { var filter C.SDL_EventFilter var data unsafe.Pointer if C.SDL_GetEventFilter(&filter, &data) == C.SDL_FALSE { return nil, nil } ctx := (*eventFilterCtx)(data) return ctx.f, ctx.d }
func isCEventFilterSet() bool { return C.SDL_GetEventFilter(nil, nil) == C.SDL_TRUE }