Exemplo n.º 1
0
func (d *Display) GetEventSource() *EventSource {
	var es *C.ALLEGRO_EVENT_SOURCE

	src_ptr := C.al_get_display_event_source((*C.ALLEGRO_DISPLAY)(d))
	es = src_ptr

	return createEventSource(es)
}
Exemplo n.º 2
0
func (d *Display) GetEventSource() *EventSource {
	return (*EventSource)(unsafe.Pointer(C.al_get_display_event_source((*C.ALLEGRO_DISPLAY)(unsafe.Pointer(d)))))
}
Exemplo n.º 3
0
// Gets the event source of the display to registeron an event queue
// with RegisterEventSource.
func (self *Display) GetEventSource() *EventSource {
	return (*EventSource)(C.al_get_display_event_source(self.handle))
}