HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.97k stars 434 forks source link

Add getGlobalScreenPosition to FlxPointer #3201

Closed 01010111 closed 2 months ago

01010111 commented 3 months ago

At the moment, FlxPointer does not have a publicly accessible way of getting it's global screen position. This change adds that.

Geokureli commented 2 months ago

Fixed by https://github.com/HaxeFlixel/flixel/pull/3211 Added FlxG.mouse.gameX and gameY which are functionally identical to _globalScreenX/Y