Struct DeviceResetEvent
Event that causes the state of an InputDevice to be reset (see ResetDevice(InputDevice, bool)).
Implements
Namespace: UnityEngine.InputSystem.LowLevel
Assembly: Unity.InputSystem.dll
Syntax
public struct DeviceResetEvent : IInputEventTypeInfo
Fields
Type
Declaration
public const int Type = 1146245972
Field Value
Type | Description |
---|---|
int |
See Also
baseEvent
Common event data.
Declaration
public InputEvent baseEvent
Field Value
Type | Description |
---|---|
InputEvent |
See Also
hardReset
Whether to also reset dontReset controls.
Declaration
public bool hardReset
Field Value
Type | Description |
---|---|
bool |
See Also
Properties
typeStatic
Declaration
public FourCC typeStatic { get; }
Property Value
Type | Description |
---|---|
FourCC |
See Also
Methods
Create(int, bool, double)
Declaration
public static DeviceResetEvent Create(int deviceId, bool hardReset = false, double time = -1)
Parameters
Type | Name | Description |
---|---|---|
int | deviceId | |
bool | hardReset | |
double | time |
Returns
Type | Description |
---|---|
DeviceResetEvent |