Beispiel #1
0
// Wait for an event. This is a blocking function call. If an error occurs,
// returns -1. Otherwise the return value is one of EVENT_ consts.
func PollEvent(e *Event) int {
	return int(C.tb_poll_event(struct_tb_event_ptr(unsafe.Pointer(e))))
}
Beispiel #2
0
func PollEvent(e *Event) int {
	var result C.int
	result = C.tb_poll_event(struct_tb_event_ptr(unsafe.Pointer(e)))
	return int(result)
}