Exemplo n.º 1
0
        public bool IsDown(UserCommands command)
        {
            RailDriverUserCommand c = Commands[(int)command];

            if (c == null)
            {
                return(false);
            }
            return(c.IsButtonDown(ButtonData));
        }
Exemplo n.º 2
0
        public bool IsReleased(UserCommands command)
        {
            RailDriverUserCommand c = Commands[(int)command];

            if (c == null || Changed == false)
            {
                return(false);
            }
            return(!c.IsButtonDown(ButtonData) && c.IsButtonDown(PreviousButtonData));
        }