Add GLFW_HOVERED for polling cursor hover state

This window attribute corresponds to the cursor enter/leave callback.

Fixes #1166.
This commit is contained in:
Camilla Löwy
2018-01-04 13:50:58 +01:00
parent 370eac3c48
commit ee9dffcd66
14 changed files with 83 additions and 0 deletions
+2
View File
@@ -785,6 +785,8 @@ GLFWAPI int glfwGetWindowAttrib(GLFWwindow* handle, int attrib)
return _glfwPlatformWindowVisible(window);
case GLFW_MAXIMIZED:
return _glfwPlatformWindowMaximized(window);
case GLFW_HOVERED:
return _glfwPlatformWindowHovered(window);
case GLFW_TRANSPARENT_FRAMEBUFFER:
return _glfwPlatformFramebufferTransparent(window);
case GLFW_RESIZABLE: