/// <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); }
public Xbox360ButtonReference GetButton(Button button) { var toReturn = new Xbox360ButtonReference(); toReturn.Button = button; toReturn.GamePad = this; return toReturn; }