Jump to content

input.mousePointer.isDown not working on iPad


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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