Exemple #1
0
        /// <summary>
        /// Called when an input is received.
        /// </summary>
        /// <param name="input">The input.</param>
        public override void OnInput(Input input)
        {
            base.OnInput(input);

            if (this.menu.IsVisible)
            {
                input.SendTo(this.menu);
            }
        }
Exemple #2
0
 /// <summary>
 /// Called when an input is received.
 /// </summary>
 /// <param name="input">The input.</param>
 public virtual void OnInput(Input input) => input.SendTo(this);