Custom |
public abstract class Controller : IDisposable
The CustomInputSourceController type exposes the following members.
| Name | Description | |
|---|---|---|
| Axes | The list of Axes. Generally this should not be used. Use GetAxisValue(Int32) and SetAxisValue(Int32, Single) instead. | |
| axisCount | The number of axes. | |
| buttonCount | The number of buttons. | |
| Buttons | The list of Buttons. Generally this should not be used. Use GetButtonValue(Int32) and SetButtonValue(Int32, Boolean) instead. | |
| Components | The list of Components. | |
| customIdentifier | A user-defined object containing identifying information for this controller. This can be used to match to a controller definition. | |
| customName | Custom name for this controller, if any. | |
| deviceInstanceGuid | Unique persistent device guid of the controller. Only set this if controllers can be uniquely identified on this platform across application sessions and system power cycles. | |
| deviceName | The device name of the controller. | |
| Elements | The list of Elements. | |
| extension | The Controller Extension. This will only return the first controller extension. Use Extensions to access all controller extensions in the controller. This should no longer be used for setting the extension value. Use AddExtension(ControllerExtension) instead. This setter was left for legacy compatibility. | |
| Extensions | The list of Controller Extensions. | |
| id | Unique id of the controller. | |
| isConnected | Determines if the controller is connected. | |
| supportsVibration | Determines whether this joystick supports vibration. | |
| systemId | The system id of the joystick. This value represents a unique device identifier, either assigned directly by the system or a derived value based on some unique system-defined identifier. Example: If the system provides a string path for a particular device, a long value can be derived from the path by assigining an id to each unique path string. | |
| type | The controller type. |
| Name | Description | |
|---|---|---|
| AddExtension | Adds a Controller Extension. This can only be called during construction. | |
| Clear | ||
| Connect | Connect the controller. | |
| Disconnect | Disconnect the controller. | |
| GetAxisValue | ||
| GetButtonFloatValue | ||
| GetButtonValue | ||
| GetComponentT | ||
| GetComponentsT | ||
| GetElementTElement | ||
| GetElementById(Int32) | ||
| GetElementByIdTElement(Int32) | ||
| GetElementCountTElement | ||
| GetElementsTElement | ||
| SetAxisValue | ||
| SetButtonFloatValue | ||
| SetButtonValue | ||
| Update | Update function. Called when input should be updated. |
| Name | Description | |
|---|---|---|
| ConnectedStateChangedEvent | Event triggered when the connected state of the controller changes. |