vez

mouseOutCallback and mouseOverCallback

Recommended Posts

I'm having trouble getting mouseOutCallback / mouseOverCallback to work. Heres my code in the create function: 

	game.input.mouse.mouseOverCallback = function() {		console.log('over');	}

If I simply replace game.input.mouse.mouseOverCallback with game.input.mouse.mouseDownCallback the console logs 'over' when the mouse is pressed, but does not log 'over' with game.input.mouse.mouseOverCallback when the mouse enters the canvas. Sorry if this is very basic, thanks for taking a look.

Share this post


Link to post
Share on other sites

I actually have the exact same problem. I took a break from dealing with mouse controls for a bit, I guess sloth and prayer didn't find a fix for me!

 

I'll probably be trying to figure out what's wrong here sometime in the next couple of days, but I'd appreciate an answer in the meantime as well.

 

I've found that it doesn't work on both on Firefox and Chrome, even with mouse capture.

Share this post


Link to post
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.

Guest
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.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.