Mouse Hover

Just released this new plugin for Corona projects that are targeting macOS and Windows. It allows you to detect when the mouse cursor is hovering over display objects by adding a _" mouseHover" _event listener to them.

Here’s a short video showing it in action with three overlapping display objects. The objects light up when the mouse hover’s over them, with one of them blocking the propagation of the hover.

https://marketplace.coronalabs.com/plugin/mouse-hover

Thank you, Ninad.
Very useful plugin, hope Corona will include it by default someday.

Has anyone tried this with html5 builds? It’s not working for me.

Hi Miguel,

While we didn’t specifically develop this for html5, I just tried an html5 build of the demo project code and it seems to be working ok. Are you still having trouble with this?

hey there, I’ve been trying to activate the plugin but it doesn’t work. I’ve tried to activate other plugins and I didn’t have any issue.

Any idea how I could fix that? Or is there any other way to download the plugin?

Not sure why you’re having trouble activating it. The plugin itself seems to be working ok. Might be a Marketplace issue.

Anywho, you can grab the source here: https://bitbucket.org/ninadjagdish/mousehover_coronasdk

Best, N.

Hey ninad, I don’t see a license on the source code. Is it ok if I pull it and alter it? I’ll need further specific changes to mouse and touch events, and I believe it will be quicker to process if I edit the original plugin.

Yup feel free to alter as you like. Added an MIT license on there. Cheers.

Thanks!

Hey ninad, I don’t see a license on the source code. Is it ok if I pull it and alter it? I’ll need further specific changes to mouse and touch events, and I believe it will be quicker to process if I edit the original plugin.

Yup feel free to alter as you like. Added an MIT license on there. Cheers.

Thanks!