Пример #1
0
 public override string GetDescription()
 {
     return(string.Format(
                "Joystick {0}",
                InputManagerHelpers.GetXboxJoystickButtonsDescription(button)
                ));
 }
 public override string GetDescription()
 {
     return(string.Format(
                "Joystick {0}/{1}",
                InputManagerHelpers.GetXboxJoystickButtonsDescription(positiveButton),
                InputManagerHelpers.GetXboxJoystickButtonsDescription(negativeButton)
                ));
 }
        protected void UpdateButtons()
        {
            buttonPositiveButton.label = positiveButton.HasValue ? InputManagerHelpers.GetXboxJoystickButtonsDescription(positiveButton.Value) : string.Empty;
            buttonNegativeButton.label = negativeButton.HasValue ? InputManagerHelpers.GetXboxJoystickButtonsDescription(negativeButton.Value) : string.Empty;

            if (positiveButton.HasValue && negativeButton.HasValue)
            {
                buttonOk.Enable();
            }
            else
            {
                buttonOk.Disable();
            }
        }