Search Unity

Getting Right Joystick Input

Discussion in 'PSM' started by Rukiryo, Jul 30, 2014.

  1. Rukiryo

    Rukiryo

    Joined:
    Jul 26, 2013
    Posts:
    20
    Hey guys!
    I'm experimenting with the vita and I can't figure out how to get the joystick working.
    Here's my setup:

    Here's the code I'm using:
    rotx += Input.GetAxis("Horizontal");
    roty += Input.GetAxis("Vertical");
    transform.position += transform.forward * Input.GetAxis("PanForward") * 20;
    transform.position += transform.right * Input.GetAxis("PanSide") * 20;

    transform.eulerAngles = new Vector3(-roty, rotx, 0);

    The horizontal and vertical axis on the left joystick work fine. The right one seems to be being stubborn.
    Maybe I'm missing something obvious. Thanks!
    (How do I use code tags on this??)
     
  2. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    Did you try the PSM Input example that comes with the editor installation, to compare the settings?