Search Unity

Touch Issue

Discussion in 'Tizen' started by vijay-goswami, Aug 5, 2017.

  1. vijay-goswami

    vijay-goswami

    Joined:
    May 17, 2017
    Posts:
    7
    There is multiple touch issue on tizen device Z4. On single touch ,everything is okay but on second touch the position of first touch become the position of second touch.

    on touchCount 2
    Input.GetTouch(0).position = Input.GetTouch(1).position;

    This causes problem in drag.

    Unity5.4.5p4
     
  2. sukwon-suh

    sukwon-suh

    Joined:
    Mar 31, 2015
    Posts:
    81
    Hello,
    I tested codes below, it works fine on z4.

    Code (CSharp):
    1.         for (int i = 0; i < Input.touchCount; i++) {
    2.             Debug.Log (i + " " + Input.GetTouch(i).position);
    3.         }
     
  3. vijay-goswami

    vijay-goswami

    Joined:
    May 17, 2017
    Posts:
    7
    @sukwon-suh

    Thanks for reply.

    Have you tested the case of multiTouch?

    I am still facing the problem.

    Case :- put first finger (don't drag or remove the finger) and see the Input.GetTouch(0).position. It will be like(x,y), now put second finger (don't drag or remove the finger) see the Input.GetTouch(1).position. It will be like(p,q) and also see the Input.GetTouch(0).position.Now it has changed and it also become (p,q) while it should be (x,y) .
     
  4. marcopolodeandrade

    marcopolodeandrade

    Joined:
    Jan 18, 2014
    Posts:
    4
    Hi vijay-goswami, could you tell me if you have solved your problem? I'm facing some curious problem with GetTouch using Unity 5.6.6 with Tizen. I'd like to know if it's working fine in your game.
    Thank you in advance