예제 #1
0
        public static String padToString(PadButtonCommand code)
        {
            switch (code)
            {
            case PadButtonCommand.LEFT:
                return("LEFT");

            case PadButtonCommand.UP_LEFT:
                return("UP_LEFT");

            case PadButtonCommand.UP:
                return("UP");

            case PadButtonCommand.UP_RIGHT:
                return("UP_RIGHT");

            case PadButtonCommand.RIGHT:
                return("RIGHT");

            case PadButtonCommand.DOWN_RIGHT:
                return("DOWN_RIGHT");

            case PadButtonCommand.DOWN:
                return("DOWN");

            case PadButtonCommand.DOWN_LEFT:
                return("DOWN_LEFT");

            case PadButtonCommand.T:
                return("T");

            case PadButtonCommand.H:
                return("H");

            case PadButtonCommand.I:
                return("I");

            case PadButtonCommand.S:
                return("S");

            case PadButtonCommand.SELECT:
                return("SELECT");

            case PadButtonCommand.PAUSE:
                return("PAUSE");

            case PadButtonCommand.START:
                return("START");

            default:
                return("UNKNOWN");
            }
        }
예제 #2
0
파일: PadEvent.cs 프로젝트: rokuan/ivy
        public static String padToString(PadButtonCommand code)
        {
            switch (code)
            {
                case PadButtonCommand.LEFT:
                    return "LEFT";
                case PadButtonCommand.UP_LEFT:
                    return "UP_LEFT";
                case PadButtonCommand.UP:
                    return "UP";
                case PadButtonCommand.UP_RIGHT:
                    return "UP_RIGHT";
                case PadButtonCommand.RIGHT:
                    return "RIGHT";
                case PadButtonCommand.DOWN_RIGHT:
                    return "DOWN_RIGHT";
                case PadButtonCommand.DOWN:
                    return "DOWN";
                case PadButtonCommand.DOWN_LEFT:
                    return "DOWN_LEFT";
                case PadButtonCommand.T:
                    return "T";
                case PadButtonCommand.H:
                    return "H";
                case PadButtonCommand.I:
                    return "I";
                case PadButtonCommand.S:
                    return "S";
                case PadButtonCommand.SELECT:
                    return "SELECT";
                case PadButtonCommand.PAUSE:
                    return "PAUSE";
                case PadButtonCommand.START:
                    return "START";

                default:
                    return "UNKNOWN";
            }
        }
예제 #3
0
 public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState, int eventX, int eventY)
     : this(playerIdx, key, eventState)
 {
     x = eventX;
     y = eventY;
 }
예제 #4
0
 public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState)
     : base(playerIdx)
 {
     button = key;
     state  = eventState;
 }
예제 #5
0
파일: PadEvent.cs 프로젝트: rokuan/ivy
 public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState, int eventX, int eventY)
     : this(playerIdx, key, eventState)
 {
     x = eventX;
     y = eventY;
 }
예제 #6
0
파일: PadEvent.cs 프로젝트: rokuan/ivy
 public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState)
     : base(playerIdx)
 {
     button = key;
     state = eventState;
 }