2D Toolkit Forum

2D Toolkit => Support => Topic started by: lionelc on November 01, 2013, 11:48:54 am

Title: Touch & Hover simultaneously ?
Post by: lionelc on November 01, 2013, 11:48:54 am
Hello,

is there some tricks to use multiTouch and HoverUI Items ? Or is there something similar with 2dtoolkit ?
In my case, I'm having a Pad : leftBtn / rightBtn and actionBtn.

I'd like to activate the pad when my finger hover it (LeftBtn and RightBtn are never working simultaneously. Hovering is perfect to go right>left>right>… with only one finger sliding from one btn to another)
But the actionBtn has to work on press (or hovering, never mind) with Left or Right pressed too.

I tried with 2 UIManager and layers (one for Hover, the other for MultiTouching), but it didn't worked.

Any idea ?
thx :)
Title: Re: Touch & Hover simultaneously ?
Post by: unikronsoftware on November 01, 2013, 12:33:58 pm
Hover isn't supported with multitouch at the moment. It has been requested a few times though. Added to trello, feel free to vote if you're interested in this feature.
Title: Re: Touch & Hover simultaneously ?
Post by: lionelc on November 01, 2013, 05:49:36 pm
thx for the answer …
That's what I read in the manual. But I though that some tricks could pass trough this limitation.
I finally developed my own system to track "clic" and "hover" in multitouch environment.
I based my work on yours. Tracking raycast/Btn colliders.