Joystick.GetAxisPosition Method

SFML.Net

JoystickGetAxisPosition Method
Get the current position of a joystick axis

Namespace: SFML.Window
Assembly: sfmlnet-window-2 (in sfmlnet-window-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public static float GetAxisPosition(
	uint joystick,
	JoystickAxis axis
)
Public Shared Function GetAxisPosition ( 
	joystick As UInteger,
	axis As JoystickAxis
) As Single
public:
static float GetAxisPosition(
	unsigned int joystick, 
	JoystickAxis axis
)
static member GetAxisPosition : 
        joystick : uint32 * 
        axis : JoystickAxis -> float32 

Parameters

joystick
Type: SystemUInt32
Index of the joystick
axis
Type: SFML.WindowJoystickAxis
Axis to check

Return Value

Type: Single
Current position of the axis, in range [-100 .. 100]
See Also