Jump to content

Mouse position always zero


xyz
 Share

Recommended Posts

Basic question that I haven't been able to find answers to from forums and has eaten up a bunch of time - why does game.input.x always return 0 (and game.input.activePointer.x always return -1)?  All forum posts I've seen assume these are already working properly, but not so in my project.  I'll try stripping my game code until I narrow down what's causing this, but just wondering if anyone has seen this before or has any good guesses.

(I've already tried initializing this.input.maxPointers = 1 from the Game State init, as suggested in https://codepen.io/samme/pen/BdEOZZ?editors=0010.)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...