Class InputSchemeDeviceNode
One device requirement of a control scheme, viewed through the underlying InputJSONNode.
Inherited Members
Namespace: Scylla.Input
Assembly: ScyllaInput.dll
Syntax
public sealed class InputSchemeDeviceNode
Constructors
InputSchemeDeviceNode(InputJSONNode)
Wraps an existing device requirement node.
Declaration
public InputSchemeDeviceNode(InputJSONNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| InputJSONNode | node | The backing node. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when the node is |
Properties
DevicePath
Gets or sets the device layout path, for example <Gamepad>.
Declaration
public string DevicePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsOR
Gets or sets whether the requirement is OR-ed with the preceding one.
Declaration
public bool IsOR { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsOptional
Gets or sets whether the requirement is optional.
Declaration
public bool IsOptional { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Node
Gets the backing node, for access to members this wrapper does not model.
Declaration
public InputJSONNode Node { get; }
Property Value
| Type | Description |
|---|---|
| InputJSONNode |
Methods
Create(string, bool, bool)
Builds a new device requirement node with its members in the order Unity emits them.
Declaration
public static InputSchemeDeviceNode Create(string devicePath, bool isOptional, bool isOR)
Parameters
| Type | Name | Description |
|---|---|---|
| string | devicePath | Device layout path. |
| bool | isOptional | Whether the requirement is optional. |
| bool | isOR | Whether the requirement is OR-ed with the preceding one. |
Returns
| Type | Description |
|---|---|
| InputSchemeDeviceNode | The wrapper around the new node. |