public bool IsDown(UserCommands command) { RailDriverUserCommand c = Commands[(int)command]; if (c == null) { return(false); } return(c.IsButtonDown(ButtonData)); }
public bool IsReleased(UserCommands command) { RailDriverUserCommand c = Commands[(int)command]; if (c == null || Changed == false) { return(false); } return(!c.IsButtonDown(ButtonData) && c.IsButtonDown(PreviousButtonData)); }