I’m capturing mouse coordinates and sending them to my server but I only want to capture and send when the mouseX and mouseY values change. Not sure how to go about that. I fiddled with this.input.on(‘pointermove’) but that seems to continuously fire even if the mouse is still.
pointermove shouldn’t fire unless the mouse is moving (or possibly clicking).
That was the impression I was under until I tested it out, samme. When I throw a console.log() into the this.input.on(‘pointermove’) function, it runs every tick or whatever rate update() runs at regardless of whether or not I move the mouse.
I think that’s not normal.
You should list the positions of your mouse in the console.log so you can check if it’s a problem of mouse or from somewhere else.