Is it possible to get a normalized mouse position, i.e. ranging from -1.0 to 1.0 (or similar) instead of pixel-based?
I ask mostly because I have a sideview camera that I want to move slightly towards wherever the mouse is pointing, for more... dynamicness.
[lua]
local x = (gui.MouseX()*2)/ScrW()-1
local y = (gui.MouseY()*2)/ScrH()-1
[/lua]
Yeah I just found that, myself. Nice timing. Thanks anyway. :)
Sorry, you need to Log In to post a reply to this thread.