Jump to content

input.mousePointer.isDown not working on iPad


Biggerplay
 Share

Recommended Posts

I'm creating a game where I have

if (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

 Share

  • Recently Browsing   0 members

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