glfwPostEmptyEvent function

void glfwPostEmptyEvent()

! @brief Posts an empty event to the event queue.

This function posts an empty event from the current thread to the event queue, causing @ref glfwWaitEvents or @ref glfwWaitEventsTimeout to return.

@errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_PLATFORM_ERROR.

@thread_safety This function may be called from any thread.

@sa @ref events @sa @ref glfwWaitEvents @sa @ref glfwWaitEventsTimeout

@since Added in version 3.1.

@ingroup window

GLFWAPI void glfwPostEmptyEvent(void)

Implementation

void glfwPostEmptyEvent() {
  final glfwPostEmptyEventLookupFunction = libglfw
      .lookupFunction<Void Function(), void Function()>('glfwPostEmptyEvent');
  return glfwPostEmptyEventLookupFunction();
}