Joystick.IsButtonPressed Method

SFML.Net

JoystickIsButtonPressed Method
Check if a joystick button is pressed

Namespace: SFML.Window
Assembly: sfmlnet-window-2 (in sfmlnet-window-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public static bool IsButtonPressed(
	uint joystick,
	uint button
)
Public Shared Function IsButtonPressed ( 
	joystick As UInteger,
	button As UInteger
) As Boolean
public:
static bool IsButtonPressed(
	unsigned int joystick, 
	unsigned int button
)
static member IsButtonPressed : 
        joystick : uint32 * 
        button : uint32 -> bool 

Parameters

joystick
Type: SystemUInt32
Index of the joystick
button
Type: SystemUInt32
Button to check

Return Value

Type: Boolean
True if the button is pressed, false otherwise
See Also