상속: IPressableInput
예제 #1
0
        /// <summary>
        /// Returns an Xbox360ButtonReference from the argument Button.
        /// </summary>
        /// <param name="button">The button, such as Button.A</param>
        /// <returns>The reference, which can then be used to check for input.</returns>
        public Xbox360ButtonReference GetButton(Button button)
        {
            var toReturn = new Xbox360ButtonReference();

            toReturn.Button  = button;
            toReturn.GamePad = this;
            return(toReturn);
        }
예제 #2
0
 public Xbox360ButtonReference GetButton(Button button)
 {
     var toReturn = new Xbox360ButtonReference();
     toReturn.Button = button;
     toReturn.GamePad = this;
     return toReturn;
 }