Exemplo n.º 1
0
        public override string GetDetailedInput()
        {
            string detailedInput = "";
            int    index         = 0;

            //TODO Search a quicker way on memory or replacement method, strings are somewhat unstable.

            detailedInput += Name + "\n";
            detailedInput += "-DPAD[" + "Up:" + BoolToX(_inputs[index++]) + ",Down:" + BoolToX(_inputs[index++]);
            detailedInput += ",Left:" + BoolToX(_inputs[index++]) + ",Right:" + BoolToX(_inputs[index++]);
            detailedInput += "] | -";
            detailedInput += _inputNames[index++] + ":[";
            detailedInput += StringMathUtils.AddDecimals(LeftStick.x) + "," + StringMathUtils.AddDecimals(LeftStick.y) + "] -";
            detailedInput += _inputNames[index++] + ":[";
            detailedInput += StringMathUtils.AddDecimals(RightStick.x) + "," + StringMathUtils.AddDecimals(RightStick.y) + "]" + " ";
            detailedInput += ButtonVerbose(index++, A);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1) + "\n";
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1) + "\n";
            return(detailedInput);
        }
Exemplo n.º 2
0
        public override string GetDetailedInput()
        {
            string detailedInput = "";
            int    index         = 0;

            detailedInput += Name + "\n";
            detailedInput += "-DPAD[" + "Up:" + BoolToX(_inputs[index++]) + ",Down:" + BoolToX(_inputs[index++]);
            detailedInput += ",Left:" + BoolToX(_inputs[index++]) + ",Right:" + BoolToX(_inputs[index++]);
            detailedInput += "] | -";

            if (LeftStick.XAxisButton.Enabled == true && LeftStick.YAxisButton.Enabled == true)
            {
                detailedInput += _inputNames[index++] + ":[";
                detailedInput += StringMathUtils.AddDecimals(LeftStick.x) + "," + StringMathUtils.AddDecimals(LeftStick.y) + "] -";
            }
            else
            {
                index++;
            }

            if (RightStick.XAxisButton.Enabled == true && RightStick.YAxisButton.Enabled == true)
            {
                detailedInput += _inputNames[index++] + ":[";
                detailedInput += StringMathUtils.AddDecimals(RightStick.x) + "," + StringMathUtils.AddDecimals(RightStick.y) + "]" + " ";
            }
            else
            {
                index++;
            }
            detailedInput += ButtonVerbose(index++, A);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1) + "\n";
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            detailedInput += ButtonVerbose(index++, index + 1);
            return(detailedInput);
        }