summaryrefslogtreecommitdiffhomepage
path: root/src/platforms
diff options
context:
space:
mode:
authorColleague Riley <[email protected]>2024-06-08 16:26:46 -0400
committerGitHub <[email protected]>2024-06-08 22:26:46 +0200
commit8c712f82d12c08fd4710468d908be765ee54e748 (patch)
treef8b200df98657b43232bc4d707deb5e752a9d121 /src/platforms
parent7b92b5bde77f857dbf25a2e0aaacb79f592c18b2 (diff)
downloadraylib-8c712f82d12c08fd4710468d908be765ee54e748.tar.gz
raylib-8c712f82d12c08fd4710468d908be765ee54e748.zip
Update RGFW (#4048)
* Fix Makefile issues (RGFW) (linux) (macOS) * Do not use nanosleep on windows at all (PLATFORM_DESKTOP_RGFW) * remove #define RGFWDEF and make the #undefs only happen for their OS * Update RGFW.h * fix to match the RGFW updates * remove line that shows the cursor for no reason
Diffstat (limited to 'src/platforms')
-rw-r--r--src/platforms/rcore_desktop_rgfw.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c
index 623dc0e7..f4e31749 100644
--- a/src/platforms/rcore_desktop_rgfw.c
+++ b/src/platforms/rcore_desktop_rgfw.c
@@ -431,7 +431,11 @@ void SetWindowFocused(void)
// Get native window handle
void *GetWindowHandle(void)
{
- return platform.window->src.window;
+ #ifndef RGFW_WINDOWS
+ return (void*)platform.window->src.window;
+ #else
+ return platform.window->src.hwnd;
+ #endif
}
// Get number of monitors
@@ -890,8 +894,6 @@ void PollInputEvents(void)
CORE.Input.Mouse.currentPosition.x = (event->point.x - (platform.window->r.w / 2)) * 2;
CORE.Input.Mouse.currentPosition.y = (event->point.y - (platform.window->r.h / 2)) * 2;
-
- RGFW_window_showMouse(platform.window, 1);
}
else {
CORE.Input.Mouse.previousPosition = CORE.Input.Mouse.currentPosition;