Problem with Event.current.clickCount in Web Player?

Hey folks,

Has anyone had any issues with Event.current.clickCount not registering correctly in the web player on Mac Firefox and Safari?

In the OnGUI function I have some code like this:

if (Event.current.clickCount == 2)
{
dblClick = true;
}

On my PC this seems to work correctly (in both Firefox and IE) but on my Mac dblClick is never set to true.

Also note that if I just preview the presentation in the Game window in Unity itself the code seems to work so I’m a little confused.

Thanks,
Jared

Hey folks,

Does anyone have any recommendations on a method of reading double-clicks?

Since Event.current.clickCount doesn’t appear to work in the web player on the Mac (see above), I’ve tried implementing a method that uses the time between clicks to determine if the second click makes a double-click. This works for the most part, but on some older machines with lower frame rates it becomes very difficult to get a double click to register.

Thanks,
Jared