fliXNA_xbox.FlxGamepad.justPressed C# (CSharp) Method

justPressed() public method

Returrns true if the specified button was just pressed
public justPressed ( Buttons Button ) : bool
Button Buttons Buttons Button
return bool
        public bool justPressed(Buttons Button)
        {
            if ((current.IsButtonDown(Button) && old.IsButtonUp(Button)))
                return true;
            else
                return false;
        }