Jump to content

Quick way to Reset Mouse Cursor


G0DsDestroyer
 Share

Recommended Posts

I'm using button.input.useHandCursor = true; to change the cursor when it's over buttons, and I need to reset the cursor to the default at some point. I know I can set this to false but it doesn't work unless the cursor is moved off of the button.

I've seen game.stage.canvas.style.cursor = "default"; being used, but that doesn't work, as it gives me an error saying canvas is not defined, even though I've made the game using Phaser.CANVAS.

 

So what I'm asking is there a way to quickly reset the cursor to it's default image?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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