Closed 01010111 closed 2 months ago
Looks like there was some misunderstanding on my part, I just don't think there's any publicly accessible functionality within FlxPointer to get the global screen position of the mouse, changing the issue name to reflect that!
Code snippet reproducing the issue:
Observed behavior:
When putting the mouse cursor at the top-left position on flixel's screen,
trace(camera.x, camera.y
is returning-80, -160
andtrace(FlxG.mouse.getScreenPosition()
is returning(x: 80 | y: 154)
Expected behavior:
When putting the mouse cursor at the top-left position on flixel's screen,
trace(camera.x, camera.y
should return-80, -160
andtrace(FlxG.mouse.getScreenPosition()
should return(x: 0 | y: 0)
(also note that assuming that this is also affected by #3199