Mmarzex Posted September 24, 2013 Share Posted September 24, 2013 I've been looking through the various parts of Phaser involved in input and I'm a little unclear as to where to start in order to pull touch input or even mouse input for that matter. Is there any clear examples of touch input? Link to comment Share on other sites More sharing options...
rich Posted September 24, 2013 Share Posted September 24, 2013 At it's most basic level you can just get it from the Game.Input class:game.input.x;game.input.y;There are lots of other properties of the Pointer object though, like speed, a hit circle, duration pressed down, drag, etc. There are examples of these in the 'input' folder - you'll find "bring to top", "drag", "snap" and others. Link to comment Share on other sites More sharing options...
Mmarzex Posted September 24, 2013 Author Share Posted September 24, 2013 Alright, I was making my thought process too complicated. Does game.input.x or .y return the first touch? If I were to put two fingers down, would it return only the first touch processed? Link to comment Share on other sites More sharing options...
Recommended Posts