Interface IInputManager
Assembly: Unity.RenderStreaming.dll
public interface IInputManager
Properties
Declaration
ReadOnlyArray<InputDevice> devices { get; }
Property Value
Type |
Description |
ReadOnlyArray<InputDevice> |
|
Declaration
IEnumerable<string> layouts { get; }
Property Value
Methods
Declaration
InputDevice AddDevice(string layout, string name = null, string variants = null)
Parameters
Returns
Type |
Description |
InputDevice |
|
Declaration
void AddDeviceUsage(InputDevice device, string usage)
Parameters
Type |
Name |
Description |
InputDevice |
device |
|
string |
usage |
|
Declaration
InputDevice GetDeviceById(int deviceId)
Parameters
Type |
Name |
Description |
int |
deviceId |
|
Returns
Type |
Description |
InputDevice |
|
Declaration
InputControlLayout LoadLayout(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Type |
Description |
InputControlLayout |
|
Declaration
void QueueEvent(InputEventPtr eventPtr)
Parameters
Type |
Name |
Description |
InputEventPtr |
eventPtr |
|
Declaration
void RegisterControlLayout(string json, string name = null, bool isOverride = false)
Parameters
Declaration
void RemoveDevice(InputDevice device)
Parameters
Type |
Name |
Description |
InputDevice |
device |
|
Declaration
void RemoveDeviceUsage(InputDevice device, string usage)
Parameters
Type |
Name |
Description |
InputDevice |
device |
|
string |
usage |
|
Declaration
void RemoveLayout(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Events
Declaration
event Action<InputDevice, InputDeviceChange> onDeviceChange
Event Type
Type |
Description |
Action<InputDevice, InputDeviceChange> |
|
Declaration
event Action<InputEventPtr, InputDevice> onEvent
Event Type
Type |
Description |
Action<InputEventPtr, InputDevice> |
|
Declaration
event Action<string, InputControlLayoutChange> onLayoutChange
Event Type
Declaration
event Action<InputRemoting.Message> onMessage
Event Type