NGUI with Leap Motion, or NGUI without mouse

I’m trying to call events on the NGUI Button Script, such as OnPress, OnHover, etc., using the Leap Motion Controller.

These messages are called just fine with the mouse but how would I call these functions if the user is not using a mouse and is using an alternative input device?

Thank you for your suggestions!

Try with the package Leap Motion Interactions (http://u3d.as/content/pixelplacement/leap-motion-interactions/5dk) It could be useful for you.

As pointed out by Statement, I needed to modify the UICamera script.

In a nutshell, I did a search for any code that was using “Input.MousePosition” and replaced it with Camera.WorldToScreenSpace().