2D Toolkit Forum

2D Toolkit => Support => Topic started by: Daiflys on May 03, 2015, 09:04:38 pm

Title: Modify OnHover
Post by: Daiflys on May 03, 2015, 09:04:38 pm
Hello! I want to adapt my current game into mobile, now i have a OnHover Event, and i want to change the functionality of OnHover by some kind of OnHold (when i touch my screen and i don't release the finger).
Also i don't want to trigger the OnClick functionality. There is a way to do this?
Thanks!
Title: Re: Modify OnHover
Post by: unikronsoftware on May 06, 2015, 10:33:31 pm
There is, you have full source after all :) The input events handling happens in tk2dUIManager. Thats where you want to start  tracing the events to insert your OnHover call.