Biggerplay Posted January 30, 2014 Share Posted January 30, 2014 I'm creating a game where I haveif (this.game.input.mousePointer.isDown) {}To let me know if the user has clicked/touched the game screen, and it works fine on the desktop, but doesn't work at all on the iPad. Connected to that is that buttons do work fine on the iPad but only in landscape more, in portrait buttons and the above line doesn't work. I'm presuming of course that mousePointer is meant to work with touch anyway? or theres something else for that and I have to detect if it's desktop or mobile and switch to the correct method of detecting input? Any ideas? Link to comment Share on other sites More sharing options...
rich Posted January 31, 2014 Share Posted January 31, 2014 There is no mousePointer on an iPad Use game.input.activePointer instead. Then it will work on desktop and mobile. Link to comment Share on other sites More sharing options...
Recommended Posts