Gamepad
Summary
Definition
Namespace: SDT4.Managed.Input
Assembly: SDT4.Managed.Input.dll
sealed class Gamepad
Inheritance:
Object ➔ Gamepad
Implements:
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; Name |
String | |
public get; Index |
Int32 | |
public get; set; Deadzone |
Single | Threshold as to when joystick movement is relevant. |
| Not recommended to set to very low values, as minor stick drift is fairly common |
Methods
public Boolean IsButtonDown(GamepadButtonInput button)
Parameters:
button(GamepadButtonInput):
Returns:
public Single GetAnalogAxis(GamepadAnalogInput analog, Single deadzoneRange)
Parameters:
-
analog(GamepadAnalogInput): -
deadzoneRange(Single):
Returns:
public static Gamepad[] GetConnectedGamepads()
Returns:
public static Void SetGamepadStateCallback(GamepadConnectionStateDelegate cb)
Parameters:
public static Boolean IsGamepadPresent(Int32 gamepadIndex)
Parameters:
gamepadIndex(Int32):
Returns: