Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

touch.deltaPosition not working?

Discussion in 'Android' started by Juan, Feb 7, 2011.

  1. Juan

    Juan

    Joined:
    May 21, 2009
    Posts:
    142
    Eeer...forget about that, my bad, i used
    Code (csharp):
    1. val_x = Input.GetTouch(0).position.x;
    instead of
    Code (csharp):
    1. val_x = Input.GetTouch(0).deltaPosition.x;

     
    Last edited: Feb 7, 2011
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    likely a workaround to make multitouch usable on android at all.
    Until very recently (not sure how recently, but HTC Desire for example suffers from anomalies on touch 2+ too) the multitouch implementation on android devices was limited and/or broken, leading to problems on touch 2+ handling that end with jumping around stuff and alike.

    As such its not really safe to track too much on this end, EA and others omited multitouch whereever possible (sims 3 has multitouch on every platform aside android for example) to support more than Q4 2010 released android devices.