Property | Type | Description | |
---|---|---|---|
AxisCount | uint | ||
ButtonCount | uint | ||
Count | uint |
Method | Description | |
---|---|---|
GetAxisPosition ( uint joystick, Axis axis ) : float |
Get the current position of a joystick axis
|
|
GetButtonCount ( uint joystick ) : uint |
Return the number of buttons supported by a joystick
|
|
GetIdentification ( uint joystick ) : Identification |
Get the joystick information
|
|
HasAxis ( uint joystick, Axis axis ) : bool |
Check if a joystick supports a given axis
|
|
IsButtonPressed ( uint joystick, uint button ) : bool |
Check if a joystick button is pressed
|
|
IsConnected ( uint joystick ) : bool |
Check if a joystick is connected
|
|
Update ( ) : void |
Update the states of all joysticks
|
Method | Description | |
---|---|---|
sfJoystick_getAxisPosition ( uint joystick, Axis axis ) : float | ||
sfJoystick_getButtonCount ( uint joystick ) : uint | ||
sfJoystick_getIdentification ( uint joystick ) : IdentificationMarshalData | ||
sfJoystick_hasAxis ( uint joystick, Axis axis ) : bool | ||
sfJoystick_isButtonPressed ( uint joystick, uint button ) : bool | ||
sfJoystick_isConnected ( uint joystick ) : bool | ||
sfJoystick_update ( ) : void |
public static GetAxisPosition ( uint joystick, Axis axis ) : float | ||
joystick | uint | Index of the joystick |
axis | Axis | Axis to check |
return | float |
public static GetButtonCount ( uint joystick ) : uint | ||
joystick | uint | Index of the joystick |
return | uint |
public static GetIdentification ( uint joystick ) : Identification | ||
joystick | uint | Index of the joystick |
return | Identification |
public static HasAxis ( uint joystick, Axis axis ) : bool | ||
joystick | uint | Index of the joystick |
axis | Axis | Axis to check |
return | bool |
public static IsButtonPressed ( uint joystick, uint button ) : bool | ||
joystick | uint | Index of the joystick |
button | uint | Button to check |
return | bool |
public static IsConnected ( uint joystick ) : bool | ||
joystick | uint | Index of the joystick to check |
return | bool |