예제 #1
0
        public bool IsDown(UserCommands command)
        {
            RailDriverUserCommand c = Commands[(int)command];

            if (c == null)
            {
                return(false);
            }
            return(c.IsButtonDown(ButtonData));
        }
예제 #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));
        }