An implementation of for use during tests.
Inheritance
System.Object
InputTestRuntime
public class InputTestRuntime : IInputRuntime, IDisposable
Properties
Declaration
public double advanceTimeEachDynamicUpdate { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public double currentTime { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public double currentTimeOffsetToRealtimeSinceStartup { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public double fixedUpdateIntervalInSeconds { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public int frameCount { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public Action<InputUpdateType> onBeforeUpdate { get; set; }
Property Value
Declaration
public Action<int, string> onDeviceDiscovered { get; set; }
Property Value
Type |
Description |
Action<System.Int32, System.String> |
|
Declaration
public Action<bool> onFocusChanged { get; set; }
Property Value
Type |
Description |
Action<System.Boolean> |
|
Declaration
public Action onShutdown { get; set; }
Property Value
Declaration
public InputUpdateDelegate onUpdate { get; set; }
Property Value
Type |
Description |
InputUpdateDelegate |
|
Declaration
public float pollingFrequency { get; set; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public ScreenOrientation screenOrientation { get; set; }
Property Value
Type |
Description |
ScreenOrientation |
|
Declaration
public Vector2 screenSize { get; set; }
Property Value
Declaration
public InputUpdateType updateMask { get; set; }
Property Value
Declaration
public List<InputTestRuntime.PairedUser> userAccountPairings { get; }
Property Value
Methods
Declaration
public int AllocateDeviceId()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public void AssociateInputDeviceWithUser(int deviceId, ulong userHandle, string userName = null, string userId = null)
Parameters
Type |
Name |
Description |
System.Int32 |
deviceId |
|
System.UInt64 |
userHandle |
|
System.String |
userName |
|
System.String |
userId |
|
Declaration
public void AssociateInputDeviceWithUser(InputDevice device, ulong userHandle, string userName = null, string userId = null)
Parameters
Type |
Name |
Description |
InputDevice |
device |
|
System.UInt64 |
userHandle |
|
System.String |
userName |
|
System.String |
userId |
|
Declaration
public long DeviceCommand(int deviceId, InputDeviceCommand*commandPtr)
Parameters
Type |
Name |
Description |
System.Int32 |
deviceId |
|
InputDeviceCommand* |
commandPtr |
|
Returns
Type |
Description |
System.Int64 |
|
Declaration
Declaration
protected void Finalize()
Declaration
public void InvokeFocusChanged(bool newFocusState)
Parameters
Type |
Name |
Description |
System.Boolean |
newFocusState |
|
Declaration
public void QueueEvent(IntPtr ptr)
Parameters
Type |
Name |
Description |
IntPtr |
ptr |
|
Declaration
public int ReportNewInputDevice(InputDeviceDescription description, int deviceId = 0, ulong userHandle = 0UL, string userName = null, string userId = null)
Parameters
Type |
Name |
Description |
InputDeviceDescription |
description |
|
System.Int32 |
deviceId |
|
System.UInt64 |
userHandle |
|
System.String |
userName |
|
System.String |
userId |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int ReportNewInputDevice(string deviceDescriptor, int deviceId = 0)
Parameters
Type |
Name |
Description |
System.String |
deviceDescriptor |
|
System.Int32 |
deviceId |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int ReportNewInputDevice<TDevice>(int deviceId = 0, ulong userHandle = 0UL, string userName = null, string userId = null)where TDevice : InputDevice
Parameters
Type |
Name |
Description |
System.Int32 |
deviceId |
|
System.UInt64 |
userHandle |
|
System.String |
userName |
|
System.String |
userId |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
Declaration
public void SetDeviceCommandCallback(int deviceId, InputTestRuntime.DeviceCommandCallback callback)
Parameters
Declaration
public void SetDeviceCommandCallback(InputDevice device, InputTestRuntime.DeviceCommandCallback callback)
Parameters
Declaration
public void SetDeviceCommandCallback<TCommand>(int deviceId, TCommand result)where TCommand : struct, IInputDeviceCommandInfo
Parameters
Type |
Name |
Description |
System.Int32 |
deviceId |
|
TCommand |
result |
|
Type Parameters
Name |
Description |
TCommand |
|
Declaration
public void Update(InputUpdateType type)
Parameters
See Also