protected override void RegisterAxis(AxisGesture gesture, AxisInput.Samsung axis)
        {
            string input = string.Empty;

            switch (axis)
            {
            case AxisInput.Samsung.LeftX:
                input = "XAxis_";
                break;

            case AxisInput.Samsung.LeftY:
                input = "YAxis_";
                break;

            case AxisInput.Samsung.RightX:
                input = "3rd_Axis_";
                break;

            case AxisInput.Samsung.RightY:
                input = "4th_Axis_";
                break;

            case AxisInput.Samsung.DPadX:
                input = "5th_Axis_";
                break;

            case AxisInput.Samsung.DPadY:
                input = "6th_Axis_";
                break;
            }
            input += m_controllerNumber;

            m_axisBindings.Add(gesture, input);
        }
 protected override void RegisterDoubleAxis(AxisGesture gesture, EVRButtonId axis)
 {
     m_doubleAxisBindings.Add(gesture, axis);
     if (!m_doubleAxisEvents.ContainsKey(gesture))
     {
         m_doubleAxisEvents.Add(gesture, delegate { });
     }
 }
        protected override void RegisterAxis(AxisGesture gesture, AxisInput.Xbox axis)
        {
            string input = string.Empty;

            switch (axis)
            {
            case AxisInput.Xbox.LeftX:
                input = "XAxis_";
                break;

            case AxisInput.Xbox.LeftY:
                input = "YAxis_";
                break;

            case AxisInput.Xbox.BothTriggers:
                input = "3rd_Axis_";
                break;

            case AxisInput.Xbox.RightX:
                input = "4th_Axis_";
                break;

            case AxisInput.Xbox.RightY:
                input = "5th_Axis_";
                break;

            case AxisInput.Xbox.DPadX:
                input = "6th_Axis_";
                break;

            case AxisInput.Xbox.DPadY:
                input = "7th_Axis_";
                break;

            case AxisInput.Xbox.LeftTrigger:
                input = "9th_Axis_";
                break;

            case AxisInput.Xbox.RightTrigger:
                input = "10th_Axis_";
                break;
            }
            input += m_controllerNumber;

            m_axisBindings.Add(gesture, input);
            if (!m_axisEvents.ContainsKey(gesture))
            {
                m_axisEvents.Add(gesture, delegate { });
            }
        }
Esempio n. 4
0
 protected override void RegisterDoubleAxis(AxisGesture gesture, EVRButtonId axis)
 {
     m_doubleAxisBindings.Add(gesture, axis);
 }