Search Unity

Can't found a way to detect Back Touchpad input

Discussion in 'PSM' started by danieljlezama, Apr 10, 2014.

  1. danieljlezama

    danieljlezama

    Joined:
    Aug 29, 2013
    Posts:
    14
    Just doing some test and I can't find a way to recognize inputs done with the Vita's back touchpad.
    Anyone know how to do this? :confused:

    thanks in advance.

    Daniel.
     
  2. DanielQuick

    DanielQuick

    Joined:
    Dec 31, 2010
    Posts:
    3,137
    That's because the back touchpads are a vita-only feature while PSM is meant to work on all of these devices.
     
  3. PeterJK

    PeterJK

    Joined:
    Dec 2, 2012
    Posts:
    35
    Unity PSM produces games playable on Vita only, though. Unity PSM games won't show up in the store on other devices.

    I heard that Unity is looking into enabling back touch support for PSM developers, so it may happen in the future.
     
  4. danieljlezama

    danieljlezama

    Joined:
    Aug 29, 2013
    Posts:
    14
    Oh thanks! good to know.
     
  5. DanielQuick

    DanielQuick

    Joined:
    Dec 31, 2010
    Posts:
    3,137
    Thanks for the correction!
     
  6. BeerRobot

    BeerRobot

    Joined:
    Oct 21, 2012
    Posts:
    1
    I think this has been implemented now, although not tried it my self.
    https://psm.playstation.net/static/..._psm/en/Documentation/Manual/PSMFeatures.html
    Code (CSharp):
    1.      using UnityEngine.PSM;
    2.      void OnGUI () {
    3.          foreach (Touch touch in PSMInput.touchesSecondary)
    4.          {
    5.              Vector2 pos = touch.position;
    6.              GUI.Label(new Rect(pos.x, Screen.height - pos.y, 50, 30), "(X) #" + touch.fingerId);
    7.          }
    8.      }
     
  7. PeterD

    PeterD

    Joined:
    Feb 6, 2013
    Posts:
    120
    This was something that should have been implemented for the public release I believe. I haven't tried it yet but, will do soon. The code from BeerRobot looks correct.