Exemple #1
0
        // Token: 0x0600002C RID: 44 RVA: 0x00002F10 File Offset: 0x00001110
        public static int GetAxisDown(string AxisName)
        {
            InputRecord inputRecord = Manager.controller.Current;

            if (AxisName == "Horizontal")
            {
                return(-(int)inputRecord.GetXMax());
            }
            if (AxisName == "Vertical")
            {
                return(-(int)inputRecord.GetYMax());
            }
            if (AxisName == "DPadX")
            {
                return((int)inputRecord.GetXMax());
            }
            if (AxisName == "DPadY")
            {
                return((int)inputRecord.GetYMax());
            }
            if (AxisName == "LeftStickX")
            {
                return((int)inputRecord.GetXMax());
            }
            if (!(AxisName == "LeftStickY"))
            {
                return(0);
            }
            return((int)inputRecord.GetYMax());
        }
Exemple #2
0
        // Token: 0x0600002A RID: 42 RVA: 0x00002E78 File Offset: 0x00001078
        public static float GetAxis(string axisName)
        {
            InputRecord inputRecord = Manager.controller.Current;

            if (axisName == "Horizontal")
            {
                return(-inputRecord.GetX());
            }
            if (axisName == "Vertical")
            {
                return(-inputRecord.GetY());
            }
            if (axisName == "DPadX")
            {
                return(inputRecord.GetXMax());
            }
            if (axisName == "DPadY")
            {
                return(inputRecord.GetYMax());
            }
            if (axisName == "LeftStickX")
            {
                return(inputRecord.GetX());
            }
            if (!(axisName == "LeftStickY"))
            {
                return(0f);
            }
            return(inputRecord.GetY());
        }
Exemple #3
0
        public static int GetAxisDown(string AxisName)
        {
            InputRecord input = controller.Current;

            switch (AxisName)
            {
            case "Horizontal": return(-(int)input.GetXMax());

            case "Vertical": return(-(int)input.GetYMax());

            case "DPadX": return((int)input.GetXMax());

            case "DPadY": return((int)input.GetYMax());

            case "LeftStickX": return((int)input.GetXMax());

            case "LeftStickY": return((int)input.GetYMax());
            }
            return(0);
        }
Exemple #4
0
        public static float GetAxis(string axisName)
        {
            InputRecord input = controller.Current;

            switch (axisName)
            {
            case "Horizontal": return(-input.GetX());

            case "Vertical": return(-input.GetY());

            case "DPadX": return(input.GetXMax());

            case "DPadY": return(input.GetYMax());

            case "LeftStickX": return(input.GetX());

            case "LeftStickY": return(input.GetY());
            }
            return(0);
        }