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

	es = C.al_get_timer_event_source((*C.ALLEGRO_TIMER)(t))

	return createEventSource(es)
}
Exemplo n.º 2
0
Arquivo: al.go Projeto: beoran/algo
// Gets the event source of this timer that can be registered
// on an event queue with RegisterEventSource.
func (self *Timer) GetEventSource() *EventSource {
	return (*EventSource)(C.al_get_timer_event_source(self.handle))
}
Exemplo n.º 3
0
func (t *Timer) GetEventSource() *EventSource {
	return (*EventSource)(unsafe.Pointer(C.al_get_timer_event_source((*C.ALLEGRO_TIMER)(unsafe.Pointer(t)))))
}