summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authorRay <[email protected]>2022-06-11 12:08:16 +0200
committerRay <[email protected]>2022-06-11 12:08:16 +0200
commitb549baa6b76c3f27f1aebcd4cd61333ad1deb960 (patch)
tree0498cffe07a9963c5800e8bed8c461065d106f66 /src/rcore.c
parent4a6e8bb90baee8abd9ec4525725ffac67f51fe63 (diff)
downloadraylib-b549baa6b76c3f27f1aebcd4cd61333ad1deb960.tar.gz
raylib-b549baa6b76c3f27f1aebcd4cd61333ad1deb960.zip
New feature: support MOUSE_PASSTHROUGH #2516
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c
index b90cbfd1..44fd96c1 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -4036,6 +4036,10 @@ static bool InitGraphicsDevice(int width, int height)
#endif
}
else glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_FALSE);
+
+ // Mouse passthrough
+ if ((CORE.Window.flags & FLAG_WINDOW_MOUSE_PASSTHROUGH) > 0) glfwWindowHint(GLFW_MOUSE_PASSTHROUGH, GLFW_TRUE);
+ else glfwWindowHint(GLFW_MOUSE_PASSTHROUGH, GLFW_FALSE);
#endif
if (CORE.Window.flags & FLAG_MSAA_4X_HINT)