Skip to content

Commit cb05ef7

Browse files
authored
[rcore_desktop_rgfw] [emscripten] fix typo (#5687)
* RGFW also requires RGBA8 images as window icons, as raylib already reports in raylib.h * LibraryConfigurations.cmake: exchanged MATCHES -> STREQUAL in platform choosing if-statements * WebRGFW: remapping mouse/touch position to canvas pixel coordinates * fix 'typo' * has to be done like that because of += in case of captured mouse * [rcore_desktop_rgfw] [emscripten] fix typo
1 parent 52d2158 commit cb05ef7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/platforms/rcore_desktop_rgfw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,13 +1469,13 @@ void PollInputEvents(void)
14691469
#endif
14701470
if (RGFW_window_isCaptured(platform.window))
14711471
{
1472-
CORE.Input.Mouse.currentPosition.x += event_x;
1473-
CORE.Input.Mouse.currentPosition.y += event_y;
1472+
CORE.Input.Mouse.currentPosition.x += mouseX;
1473+
CORE.Input.Mouse.currentPosition.y += mouseY;
14741474
}
14751475
else
14761476
{
1477-
CORE.Input.Mouse.currentPosition.x = event_x;
1478-
CORE.Input.Mouse.currentPosition.y = event_y;
1477+
CORE.Input.Mouse.currentPosition.x = mouseX;
1478+
CORE.Input.Mouse.currentPosition.y = mouseY;
14791479
}
14801480

14811481
CORE.Input.Touch.position[0] = CORE.Input.Mouse.currentPosition;

0 commit comments

Comments
 (0)