示例#1
0
文件: glfw.go 项目: gordonklaus/glfw
func PostEmptyEvent() {
	C.glfwPostEmptyEvent()
}
示例#2
0
文件: window.go 项目: godispy/glfw
// PostEmptyEvent posts an empty event from the current thread to the main
// thread event queue, causing WaitEvents to return.
//
// If no windows exist, this function returns immediately.  For
// synchronization of threads in applications that do not create windows, use
// your threading library of choice.
//
// This function may be called from secondary threads.
func PostEmptyEvent() {
	C.glfwPostEmptyEvent()
	panicError()
}