Example #1
0
        public override void Update(float dt, IInputState input)
        {
            if (HasFocus)
            {
                if (input.ButtonClicked(Buttons.A))
                {
                    SelectCurrentItem();
                }
                else if (input.LeftClicked())
                {
                    PreviousItem();
                }
                else if (input.RightClicked())
                {
                    NextItem();
                }
            }

            base.Update(dt, input);
        }