ControllerSetSelector Class |
Namespace: Rewired
[SerializableAttribute] public sealed class ControllerSetSelector : ISerializationCallbackReceiver
The ControllerSetSelector type exposes the following members.
Name | Description | |
---|---|---|
ControllerSetSelector |
Creates an instance of the class.
| |
ControllerSetSelector(ControllerSetSelector) |
Creates a copy of an instance.
|
Name | Description | |
---|---|---|
controllerId |
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.
| |
controllerTemplateTypeGuid |
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.
| |
controllerType |
The Controller Type the entry applies to.
This is required for all Device Selector Type modes except All.
| |
deviceInstanceGuid |
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.
| |
hardwareIdentifier |
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.
| |
hardwareTypeGuid |
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.
| |
type |
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.
|
Name | Description | |
---|---|---|
Matches |
Determines if the specified Controller is matched by the selector.
| |
SelectAll |
Creates an entry with a All selector type.
| |
SelectControllerTemplateType(IControllerTemplate) |
Creates an entry with a ControllerTemplateType selector type.
Necessary properties will be populated from the Controller Template.
| |
SelectControllerTemplateType(ControllerType, Guid) |
Creates an entry with a ControllerTemplateType selector type.
| |
SelectControllerType |
Creates an entry with a ControllerType selector type.
| |
SelectHardwareType(Controller) |
Creates an entry with a HardwareType selector type.
Necessary properties will be populated from the Controller.
| |
SelectHardwareType(ControllerType, Guid, String) |
Creates an entry with a HardwareType selector type.
| |
SelectPersistentControllerInstance(Controller) |
Creates an entry with a PersistentControllerInstance selector type.
Necessary properties will be populated from the Controller.
| |
SelectPersistentControllerInstance(ControllerType, Guid) |
Creates an entry with a PersistentControllerInstance selector type.
| |
SelectSessionControllerInstance(Controller) |
Creates an entry with a SessionControllerInstance selector type.
Necessary properties will be populated from the Controller.
| |
SelectSessionControllerInstance(ControllerType, Int32) |
Creates an entry with a SessionControllerInstance selector type.
| |
ToString | (Overrides ObjectToString.) |