// Wait for an event 'timeout' milliseconds. If no event occurs, returns 0. If // an error occurs, returns -1. Otherwise the return value is one of EVENT_ // consts. func PeekEvent(e *Event, timeout int) int { return int(C.tb_peek_event(struct_tb_event_ptr(unsafe.Pointer(e)), C.uint(timeout))) }
func PeekEvent(e *Event, timeout uint) int { var result C.int result = C.tb_peek_event(struct_tb_event_ptr(unsafe.Pointer(e)), C.uint(timeout)) return int(result) }