Example #1
0
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
}
Example #2
0
func isCEventFilterSet() bool {
	return C.SDL_GetEventFilter(nil, nil) == C.SDL_TRUE
}