AForge.Controls.Joystick.Status.IsButtonPressed C# (CSharp) Method

IsButtonPressed() public method

Check if certain button (or combination of buttons) is pressed.
public IsButtonPressed ( Buttons button ) : bool
button Buttons Button to check state of.
return bool
            public bool IsButtonPressed( Buttons button )
            {
                return ( ( ( (Buttons) status.buttons ) & button ) != 0 );
            }
        }