Ejemplo n.º 1
0
        private bool KeyGet(Input input)
        {
            bool IsPushedAnyKey = Operator.MoveBar(this, ref AcceleratingCount, input);

            if (CenterX < EnlargedWidth / 2)
            {
                CenterX = EnlargedWidth / 2;
            }

            if (CenterX > dInfo.Width - EnlargedWidth / 2)
            {
                CenterX = dInfo.Width - EnlargedWidth / 2;
            }

            return(IsPushedAnyKey);
        }