xyz Posted October 22, 2017 Share Posted October 22, 2017 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 More sharing options...
samid737 Posted October 24, 2017 Share Posted October 24, 2017 Hard to tell without looking at the code. Can you provide more details? Link to comment Share on other sites More sharing options...
xyz Posted October 24, 2017 Author Share Posted October 24, 2017 Solved - sorry, this turned out to be due to an invisible div that was overlaid on top of the canvas! samme 1 Link to comment Share on other sites More sharing options...
Recommended Posts