mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-09 16:59:09 -04:00
[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
This commit is contained in:
@ -1469,13 +1469,13 @@ void PollInputEvents(void)
|
|||||||
#endif
|
#endif
|
||||||
if (RGFW_window_isCaptured(platform.window))
|
if (RGFW_window_isCaptured(platform.window))
|
||||||
{
|
{
|
||||||
CORE.Input.Mouse.currentPosition.x += event_x;
|
CORE.Input.Mouse.currentPosition.x += mouseX;
|
||||||
CORE.Input.Mouse.currentPosition.y += event_y;
|
CORE.Input.Mouse.currentPosition.y += mouseY;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CORE.Input.Mouse.currentPosition.x = event_x;
|
CORE.Input.Mouse.currentPosition.x = mouseX;
|
||||||
CORE.Input.Mouse.currentPosition.y = event_y;
|
CORE.Input.Mouse.currentPosition.y = mouseY;
|
||||||
}
|
}
|
||||||
|
|
||||||
CORE.Input.Touch.position[0] = CORE.Input.Mouse.currentPosition;
|
CORE.Input.Touch.position[0] = CORE.Input.Mouse.currentPosition;
|
||||||
|
|||||||
Reference in New Issue
Block a user