amplive Posted September 18, 2018 Share Posted September 18, 2018 Hey everyone. I was wondering if it is possible to get the coordinates of the mouse when it is not pressed down. So far I can only get the coordinates of the mouse through game.input.activePointer.position.x/y. Canvas has event listeners that can get the coordinates of the mouse, but I was wondering if Phaser had anything. Thanks! Link to comment Share on other sites More sharing options...
iKest Posted September 18, 2018 Share Posted September 18, 2018 pointermove event Link to comment Share on other sites More sharing options...
amplive Posted September 19, 2018 Author Share Posted September 19, 2018 this.input.on("pointermove", doSomething) still only works while the mouse is pressed down. Link to comment Share on other sites More sharing options...
Milton Posted September 19, 2018 Share Posted September 19, 2018 Then your mouse is broken https://labs.phaser.io/view.html?src=src\input\pointer\move event.js blackhawx 1 Link to comment Share on other sites More sharing options...
Recommended Posts