Class ControllerElementMappingProfile
Inheritance
Implements
Inherited Members
Namespace: Snowflake.Input.Controller.Mapped
Assembly: Snowflake.Framework.dll
Syntax
public class ControllerElementMappingProfile : IControllerElementMappingProfile, IEnumerable<ControllerElementMapping>, IEnumerable
Constructors
ControllerElementMappingProfile(String, ControllerId, InputDriver, Int32, IDeviceLayoutMapping)
Initializes a ControllerElementMappingProfile from an IDeviceLayoutMapping, that includes all mappings from the default layout.
Declaration
public ControllerElementMappingProfile(string deviceName, ControllerId controllerId, InputDriver driver, int vendor, IDeviceLayoutMapping mapping)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | deviceName | The name of the physical device for this set of mappings. |
| ControllerId | controllerId | The Stone ControllerID this mapping is intended for. |
| InputDriver | driver | The InputDriver of the device instance for this set of mappings. |
| System.Int32 | vendor | The vendor ID of the physical device for this set of mappings. |
| IDeviceLayoutMapping | mapping | The device layout mapping provided by the device enumerator. |
ControllerElementMappingProfile(String, ControllerId, InputDriver, Int32, IDeviceLayoutMapping, Guid)
Initializes a ControllerElementMappingProfile from an IDeviceLayoutMapping, that includes all mappings from the default layout.
Declaration
public ControllerElementMappingProfile(string deviceName, ControllerId controllerId, InputDriver driver, int vendor, IDeviceLayoutMapping mapping, Guid profileGuid)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | deviceName | The name of the physical device for this set of mappings. |
| ControllerId | controllerId | The Stone ControllerID this mapping is intended for. |
| InputDriver | driver | The InputDriver of the device instance for this set of mappings. |
| System.Int32 | vendor | The vendor ID of the physical device for this set of mappings. |
| IDeviceLayoutMapping | mapping | The device layout mapping provided by the device enumerator. |
| System.Guid | profileGuid | The System.Guid of this mapping profile. |
ControllerElementMappingProfile(String, ControllerId, InputDriver, Int32, Guid)
Declaration
public ControllerElementMappingProfile(string deviceName, ControllerId controllerId, InputDriver driver, int vendor, Guid profileGuid)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | deviceName | |
| ControllerId | controllerId | |
| InputDriver | driver | |
| System.Int32 | vendor | |
| System.Guid | profileGuid |
ControllerElementMappingProfile(String, IControllerLayout, InputDriver, Int32, IDeviceLayoutMapping)
Initializes aControllerElementMappingProfile from an IDeviceLayoutMapping, that includes only mappings that are assignable to the provided layout.
Declaration
public ControllerElementMappingProfile(string deviceName, IControllerLayout controller, InputDriver driver, int vendor, IDeviceLayoutMapping mapping)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | deviceName | The name of the physical device for this set of mappings. |
| IControllerLayout | controller | The controller layout to assign device mappings to. |
| InputDriver | driver | The InputDriver of the device instance for this set of mappings. |
| System.Int32 | vendor | The vendor ID of the physical device for this set of mappings. |
| IDeviceLayoutMapping | mapping | The device layout mapping provided by the device enumerator. |
ControllerElementMappingProfile(String, IControllerLayout, InputDriver, Int32, IDeviceLayoutMapping, Guid)
Initializes aControllerElementMappingProfile from an IDeviceLayoutMapping, that includes only mappings that are assignable to the provided layout.
Declaration
public ControllerElementMappingProfile(string deviceName, IControllerLayout controller, InputDriver driver, int vendor, IDeviceLayoutMapping mapping, Guid profileGuid)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | deviceName | The name of the physical device for this set of mappings. |
| IControllerLayout | controller | The controller layout to assign device mappings to. |
| InputDriver | driver | The InputDriver of the device instance for this set of mappings. |
| System.Int32 | vendor | The vendor ID of the physical device for this set of mappings. |
| IDeviceLayoutMapping | mapping | The device layout mapping provided by the device enumerator. |
| System.Guid | profileGuid | The System.Guid of this mapping profile. |
Properties
ControllerID
Declaration
public ControllerId ControllerID { get; }
Property Value
| Type | Description |
|---|---|
| ControllerId |
DeviceName
Declaration
public string DeviceName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
DriverType
Declaration
public InputDriver DriverType { get; }
Property Value
| Type | Description |
|---|---|
| InputDriver |
Item[ControllerElement]
Declaration
public DeviceCapability this[ControllerElement layoutElement] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| ControllerElement | layoutElement |
Property Value
| Type | Description |
|---|---|
| DeviceCapability |
ProfileGuid
Declaration
public Guid ProfileGuid { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Guid |
VendorID
Declaration
public int VendorID { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
Add(ControllerElementMapping)
Declaration
public void Add(ControllerElementMapping controllerElement)
Parameters
| Type | Name | Description |
|---|---|---|
| ControllerElementMapping | controllerElement |
GetEnumerator()
Declaration
public IEnumerator<ControllerElementMapping> GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerator<ControllerElementMapping> |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.IEnumerator |