コード例 #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));
        }