Turns a device layout into an actual InputDevice instance.
Inheritance
System.Object
InputDeviceBuilder
public class InputDeviceBuilder
Constructors
Declaration
public InputDeviceBuilder(string layout, string variants = null, InputDeviceDescription deviceDescription = default(InputDeviceDescription), 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 |
|