示例#1
0
        public virtual bool KeyPressed(Keys key, GameTime gameTime)
        {
            bool res = UIWindowManager.KeyPressed(key, gameTime);

            if (res == false)
            {
                // Event was not handled by UI
                res = CurrentController?.KeyPressed(key) ?? false;
                if (res == false)
                {
                    CurrentCamera?.KeyPressed(key);
                }
            }
            return(res);
        }