Exemple #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)
}
Exemple #2
0
func (d *Display) GetEventSource() *EventSource {
	return (*EventSource)(unsafe.Pointer(C.al_get_display_event_source((*C.ALLEGRO_DISPLAY)(unsafe.Pointer(d)))))
}
Exemple #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))
}