Consistently check pointer position?

I have a game where objects can be highlighted when the pointer hovers above them. If I move the camera via player movement, the highlight sprite that I’m using doesn’t update to the new location, causing it to be stuck in an inaccurate place. Is there a way to constantly get the pointer position?

this.input.setPollAlways()