Search Unity

GVR Controller and Touch Phases

Discussion in 'Daydream' started by Mystic_nynja, Nov 10, 2016.

  1. Mystic_nynja

    Mystic_nynja

    Joined:
    Feb 5, 2013
    Posts:
    14
    Is there any plans on adding TouchPhases to the GVRController? Asking because I'm about to write them and if you are just going to make them native I can work on other things until then.

    Also if they are being made, what release can we expect them in?
     
  2. mira_leung

    mira_leung

    Official Google Employee

    Joined:
    May 17, 2016
    Posts:
    70
    GvrController.State is currently a rough analog to TouchPhases - see also Assets/GoogleVR/Scripts/Controller/Internal/ControllerState.cs. Would like to hear your feedback if this isn't sufficient for your use cases. :)
     
  3. Mystic_nynja

    Mystic_nynja

    Joined:
    Feb 5, 2013
    Posts:
    14
    Great Thanks! I looked into them, and tried to make my own that have more of the same states as the Touch class in Unity, but it felt unnecessary.

    If I come up with anything I'll share it here.

    The reason I was wondering is how to detect a swipe motion vs just normal touch. I think I can do it with what is provided though.