1 decade ago by pawel
Hi,
input.mouse.x and input.mouse.y returns mouse position within a gameplay area,
however if I move mouse outside the gameplay area it still contains the last x, y values, which makes my scrolling on the edges difficult to use.
All I need to know if the mouse cursor is (for sure) over the gameplay area at the given moment.
I suppose I could use some sort of jquery hack, but maybe there is a better way to do it?
Thanks for any help.
input.mouse.x and input.mouse.y returns mouse position within a gameplay area,
however if I move mouse outside the gameplay area it still contains the last x, y values, which makes my scrolling on the edges difficult to use.
All I need to know if the mouse cursor is (for sure) over the gameplay area at the given moment.
I suppose I could use some sort of jquery hack, but maybe there is a better way to do it?
Thanks for any help.