Ejemplo n.º 1
0
// FilterEvents (https://wiki.libsdl.org/SDL_FilterEvents)
func FilterEvents(filter EventFilter) {
	context := &eventFilterCallbackContext{filter}
	C.filterEvents(context.cptr())
}
Ejemplo n.º 2
0
// FilterEvents (https://wiki.libsdl.org/SDL_FilterEvents)
func FilterEvents(filter EventFilter, userdata interface{}) {
	context := newEventFilterCallbackContext(filter, userdata)
	C.filterEvents(context.cptr())
}