Click or drag to resize

ControllerSetSelector Class

Used for selecting Controllers based on the specified criteria. See static factory methods for construction.
Inheritance Hierarchy
SystemObject
  RewiredControllerSetSelector

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
[SerializableAttribute]
public sealed class ControllerSetSelector : ISerializationCallbackReceiver

The ControllerSetSelector type exposes the following members.

Constructors
Properties
  NameDescription
Public propertycontrollerId
The id of the Controller this entry applies to. This is only used if type is set to SessionControllerInstance. This targets all a single, specific Controller instance that is only valid for the current session.. This value can be obtained from deviceInstanceGuid.
Public propertycontrollerTemplateTypeGuid
The Controller Template type this entry applies to. This is only used if type is set to ControllerTemplateType. This targets all Controllers that match the specified Controller Template type. This value can be obtained from typeGuid or the concrete static class of the Controller Template such as GamepadTemplate.typeGuid.
Public propertycontrollerType
The Controller Type the entry applies to. This is required for all Device Selector Type modes except All.
Public propertydeviceInstanceGuid
The device instance guid of the Controller this entry applies to. This is only used if type is set to PersistentControllerInstance. This targets all a single, specific Controller instance that may be valid across sessions. This value can be obtained from deviceInstanceGuid.
Public propertyhardwareIdentifier
The hardware identifier of the Controller this entry applies to. This is only used if type is set to HardwareType. This targets all Controllers that match a specific unrecognized hardware type such as for a Joystick that has no controller definition built into Rewired. You should set both hardwareTypeGuid and hardwareIdentifier with the values supplied by hardwareTypeGuid and hardwareIdentifier so both recognized and unrecognized Joysticks will be handled. This value can be obtained from hardwareIdentifier. If no hardwareTypeGuid is specified and this value is blank, it will match all Unknown Controllers.
Public propertyhardwareTypeGuid
The hardware type Guid of the Controller this entry applies to. This is only used if type is set to HardwareType. This targets all Controllers that match a specific recognized hardware type such as all Xbox 360 controllers. You should set both hardwareTypeGuid and hardwareIdentifier with the values supplied by hardwareTypeGuid and hardwareIdentifier so both recognized and unrecognized Controllers will be handled. This value can be obtained from hardwareTypeGuid.
Public propertytype
Determines selection method used to find the devices the entry applies to. Depending on the value chosen, one or more other properties must be set. The required fields for each mode are as follows: All: None. ControllerType: controllerType. HardwareType: controllerType, hardwareTypeGuid, hardwareIdentifier. ControllerTemplateType: controllerType, controllerTemplateTypeGuid. PersistentControllerInstance: controllerType, deviceInstanceGuid. SessionControllerInstance: controllerType, controllerId.
Top
Methods
  NameDescription
Public methodMatches
Determines if the specified Controller is matched by the selector.
Public methodStatic memberSelectAll
Creates an entry with a All selector type.
Public methodStatic memberSelectControllerTemplateType(IControllerTemplate)
Creates an entry with a ControllerTemplateType selector type. Necessary properties will be populated from the Controller Template.
Public methodStatic memberSelectControllerTemplateType(ControllerType, Guid)
Creates an entry with a ControllerTemplateType selector type.
Public methodStatic memberSelectControllerType
Creates an entry with a ControllerType selector type.
Public methodStatic memberSelectHardwareType(Controller)
Creates an entry with a HardwareType selector type. Necessary properties will be populated from the Controller.
Public methodStatic memberSelectHardwareType(ControllerType, Guid, String)
Creates an entry with a HardwareType selector type.
Public methodStatic memberSelectPersistentControllerInstance(Controller)
Creates an entry with a PersistentControllerInstance selector type. Necessary properties will be populated from the Controller.
Public methodStatic memberSelectPersistentControllerInstance(ControllerType, Guid)
Creates an entry with a PersistentControllerInstance selector type.
Public methodStatic memberSelectSessionControllerInstance(Controller)
Creates an entry with a SessionControllerInstance selector type. Necessary properties will be populated from the Controller.
Public methodStatic memberSelectSessionControllerInstance(ControllerType, Int32)
Creates an entry with a SessionControllerInstance selector type.
Public methodToString (Overrides ObjectToString.)
Top
See Also