Click or drag to resize

CustomInputSourceController Class

Custom input source Controller base class.
Inheritance Hierarchy

Namespace: Rewired.Platforms.Custom
Assembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+e8257758c3446d922301bab0e4637a0e5ec1862f
Syntax
C#
public abstract class Controller : IDisposable

The CustomInputSourceController type exposes the following members.

Properties
 NameDescription
Public propertyAxes The list of Axes. Generally this should not be used. Use GetAxisValue(Int32) and SetAxisValue(Int32, Single) instead.
Public propertyaxisCount The number of axes.
Public propertybuttonCount The number of buttons.
Public propertyButtons The list of Buttons. Generally this should not be used. Use GetButtonValue(Int32) and SetButtonValue(Int32, Boolean) instead.
Public propertyComponents The list of Components.
Public propertycustomIdentifier A user-defined object containing identifying information for this controller. This can be used to match to a controller definition.
Public propertycustomName Custom name for this controller, if any.
Public propertydeviceInstanceGuid 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.
Public propertydeviceName The device name of the controller.
Public propertyElements The list of Elements.
Public propertyextension 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.
Public propertyExtensions The list of Controller Extensions.
Public propertyid Unique id of the controller.
Public propertyisConnected Determines if the controller is connected.
Public propertysupportsVibration Determines whether this joystick supports vibration.
Public propertysystemId 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.
Public propertytype The controller type.
Top
Methods
 NameDescription
Public methodAddExtension Adds a Controller Extension. This can only be called during construction.
Public methodClear 
Public methodConnect Connect the controller.
Public methodDisconnect Disconnect the controller.
Public methodGetAxisValue 
Public methodGetButtonFloatValue 
Public methodGetButtonValue 
Public methodGetComponentT 
Public methodGetComponentsT 
Public methodGetElementTElement 
Public methodGetElementById(Int32) 
Public methodGetElementByIdTElement(Int32) 
Public methodGetElementCountTElement 
Public methodGetElementsTElement 
Public methodSetAxisValue 
Public methodSetButtonFloatValue 
Public methodSetButtonValue 
Public methodUpdate Update function. Called when input should be updated.
Top
Events
 NameDescription
Public eventConnectedStateChangedEvent Event triggered when the connected state of the controller changes.
Top
See Also