Ejemplo n.º 1
0
        public static string stateToString(PadButtonAction stateMode)
        {
            switch (stateMode)
            {
            case PadButtonAction.DOWN_STATE:
                return("DOWN");

            case PadButtonAction.UP_STATE:
                return("UP");

            case PadButtonAction.MOVE_STATE:
                return("MOVE");

            default:
                return("UNKNOWN");
            }
        }
Ejemplo n.º 2
0
        public static string stateToString(PadButtonAction stateMode)
        {
            switch (stateMode)
            {
                case PadButtonAction.DOWN_STATE:
                    return "DOWN";

                case PadButtonAction.UP_STATE:
                    return "UP";

                case PadButtonAction.MOVE_STATE:
                    return "MOVE";

                default:
                    return "UNKNOWN";
            }
        }
Ejemplo n.º 3
0
 public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState, int eventX, int eventY)
     : this(playerIdx, key, eventState)
 {
     x = eventX;
     y = eventY;
 }
Ejemplo n.º 4
0
 public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState)
     : base(playerIdx)
 {
     button = key;
     state  = eventState;
 }
Ejemplo n.º 5
0
 public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState, int eventX, int eventY)
     : this(playerIdx, key, eventState)
 {
     x = eventX;
     y = eventY;
 }
Ejemplo n.º 6
0
 public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState)
     : base(playerIdx)
 {
     button = key;
     state = eventState;
 }