Example #1
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));
        }
Example #2
0
        public bool IsDown(UserCommands command)
        {
            RailDriverUserCommand c = Commands[(int)command];

            if (c == null)
            {
                return(false);
            }
            return(c.IsButtonDown(ButtonData));
        }