Turns a device layout into an actual InputDevice instance.
Inheritance
System.Object
InputDeviceBuilder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
public class InputDeviceBuilder
Constructors
Declaration
public InputDeviceBuilder(string layout, string variants = null, InputDeviceDescription deviceDescription = null, InputDevice existingDevice = null)
Parameters
Methods
Declaration
public InputDevice Finish()
Returns
Declaration
public InputControl GetControl(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
Declaration
public InputControl GetControl(InputControl parent, string path)
Parameters
| Type |
Name |
Description |
| InputControl |
parent |
|
| System.String |
path |
|
Returns
Declaration
public TControl GetControl<TControl>(string path)where TControl : InputControl
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| TControl |
|
Type Parameters
| Name |
Description |
| TControl |
|
Declaration
public TControl GetControl<TControl>(InputControl parent, string path)where TControl : InputControl
Parameters
| Type |
Name |
Description |
| InputControl |
parent |
|
| System.String |
path |
|
Returns
| Type |
Description |
| TControl |
|
Type Parameters
| Name |
Description |
| TControl |
|
Declaration
public InputControl TryGetControl(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
Declaration
public InputControl TryGetControl(InputControl parent, string path)
Parameters
| Type |
Name |
Description |
| InputControl |
parent |
|
| System.String |
path |
|
Returns
Declaration
public TControl TryGetControl<TControl>(string path)where TControl : InputControl
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| TControl |
|
Type Parameters
| Name |
Description |
| TControl |
|
Declaration
public TControl TryGetControl<TControl>(InputControl parent, string path)where TControl : InputControl
Parameters
| Type |
Name |
Description |
| InputControl |
parent |
|
| System.String |
path |
|
Returns
| Type |
Description |
| TControl |
|
Type Parameters
| Name |
Description |
| TControl |
|