SFML.Net
Joystick Class |
Give access to the real-time state of the joysticks
Inheritance Hierarchy
SystemObject SFML.WindowJoystick
Namespace: SFML.Window
Assembly: sfmlnet-window-2 (in sfmlnet-window-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
The Joystick type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetAxisPosition |
Get the current position of a joystick axis
| |
GetButtonCount |
Return the number of buttons supported by a joystick
| |
GetIdentification |
Get the joystick information
| |
HasAxis |
Check if a joystick supports a given axis
| |
IsButtonPressed |
Check if a joystick button is pressed
| |
IsConnected |
Check if a joystick is connected
| |
Update |
Update the states of all joysticks
|
Fields
Name | Description | |
---|---|---|
AxisCount | Maximum number of supported axes | |
ButtonCount | Maximum number of supported buttons | |
Count | Maximum number of supported joysticks |
See Also