示例#1
0
    public static bool getRightTriggerRelease()
    {
#if UNITY_PS4
        if (PS4Input.MoveGetAnalogButton(0, 0) > 0 && priorRight == true)
        {
            return(true);
        }
        else
        {
            return(false);
        }
#else
        if (rightController.GetPress(triggerButton) && priorRight == true)
        {
            return(true);
        }
        else
        {
            return(false);
        }
#endif
    }
示例#2
0
    public static bool getLeftTrigger()
    {
#if UNITY_PS4
        if (PS4Input.MoveGetAnalogButton(0, 1) > 0)
        {
            return(true);
        }
        else
        {
            return(false);
        }
#else
        if (leftController.GetPress(triggerButton))
        {
            //Debug.Log("trig press L2");

            return(true);
        }
        else
        {
            return(false);
        }
#endif
    }
示例#3
0
    public static bool getRightTriggerDown()
    {
#if UNITY_PS4
        if (PS4Input.MoveGetAnalogButton(0, 0) > 0 && priorRight == false)
        {
            return(true);
        }
        else
        {
            return(false);
        }
#else
        if (rightController.GetPress(triggerButton) && priorRight == false)
        {
            //Debug.Log("trig press R");

            return(true);
        }
        else
        {
            return(false);
        }
#endif
    }