JoystickCapabilities

struct JoystickCapabilities : System.ValueType

Describes joystick capabilities.

readonly bool IsConnected

Gets a value indicating whether the joystick is connected.

Value:true if the joystick is connected; otherwise, false.
readonly string Identifier

Gets the unique identifier of the joystick.

Value:String representing the unique identifier of the joystick.
readonly bool IsGamepad

Gets a value indicating if the joystick is a gamepad.

Value:true if the joystick is a gamepad; otherwise, false.
readonly int AxisCount

Gets the axis count.

Value:The number of axes that the joystick possesses.
readonly int ButtonCount

Gets the button count.

Value:The number of buttons that the joystick possesses.
readonly int HatCount

Gets the hat count.

Value:The number of hats/dpads that the joystick possesses.
void set_IsConnected(bool value)
Parameters:
  • value (bool) –
void set_Identifier(string value)
Parameters:
  • value (string) –
void set_IsGamepad(bool value)
Parameters:
  • value (bool) –
void set_AxisCount(int value)
Parameters:
  • value (int) –
void set_ButtonCount(int value)
Parameters:
  • value (int) –
void set_HatCount(int value)
Parameters:
  • value (int) –
bool op_Equality(JoystickCapabilities left, JoystickCapabilities right)

Determines whether a specified instance of T:Microsoft.Xna.Framework.Input.JoystickCapabilities is equal to another specified T:Microsoft.Xna.Framework.Input.JoystickCapabilities.

Parameters:
  • left (Microsoft.Xna.Framework.Input.JoystickCapabilities) – The first T:Microsoft.Xna.Framework.Input.JoystickCapabilities to compare.
  • right (Microsoft.Xna.Framework.Input.JoystickCapabilities) – The second T:Microsoft.Xna.Framework.Input.JoystickCapabilities to compare.
Returns:

true if left and right are equal; otherwise, false.

bool op_Inequality(JoystickCapabilities left, JoystickCapabilities right)

Determines whether a specified instance of T:Microsoft.Xna.Framework.Input.JoystickCapabilities is not equal to another specified T:Microsoft.Xna.Framework.Input.JoystickCapabilities.

Parameters:
  • left (Microsoft.Xna.Framework.Input.JoystickCapabilities) – The first T:Microsoft.Xna.Framework.Input.JoystickCapabilities to compare.
  • right (Microsoft.Xna.Framework.Input.JoystickCapabilities) – The second T:Microsoft.Xna.Framework.Input.JoystickCapabilities to compare.
Returns:

true if left and right are not equal; otherwise, false.

bool Equals(System.Object obj)

Determines whether the specified T:System.Object is equal to the current T:Microsoft.Xna.Framework.Input.JoystickCapabilities.

Parameters:
  • obj (System.Object) – The T:System.Object to compare with the current T:Microsoft.Xna.Framework.Input.JoystickCapabilities.
Returns:
true if the specified T:System.Object is equal to the current

T:Microsoft.Xna.Framework.Input.JoystickCapabilities; otherwise, false.

int GetHashCode()

Serves as a hash function for a T:Microsoft.Xna.Framework.Input.JoystickCapabilities object.

Returns:
A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a

hash table.

string ToString()

Returns a T:System.String that represents the current T:Microsoft.Xna.Framework.Input.JoystickCapabilities.

Returns:A T:System.String that represents the current T:Microsoft.Xna.Framework.Input.JoystickCapabilities.