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
This commit is contained in:
Colleague Riley 2024-06-08 16:26:46 -04:00 committed by GitHub
parent 7b92b5bde7
commit 8c712f82d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 561 additions and 329 deletions

882
src/external/RGFW.h vendored

File diff suppressed because it is too large Load Diff

View File

@ -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;