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"); } }
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"; } }
public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState, int eventX, int eventY) : this(playerIdx, key, eventState) { x = eventX; y = eventY; }
public PadEvent(int playerIdx, PadButtonCommand key, PadButtonAction eventState) : base(playerIdx) { button = key; state = eventState; }