コード例 #1
0
 public override string GetDescription()
 {
     return(string.Format(
                "Joystick {0}",
                InputManagerHelpers.GetXboxJoystickButtonsDescription(button)
                ));
 }
コード例 #2
0
 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();
            }
        }