Class InputDeviceDisconnectedEvent
Published via the Scylla Event eXchange System (SEX) when a previously connected input device is removed or disconnected.
Inherited Members
Namespace: Scylla.Input
Assembly: ScyllaInput.dll
Syntax
public class InputDeviceDisconnectedEvent : ScyllaEvent
Remarks
The Device reference may still be inspected during this event's
dispatch to read the device's last known state, but the reference should not be
cached after dispatch completes. Subscribe via
ScyllaEvents.Listen<InputDeviceDisconnectedEvent>.
Properties
Device
Gets or sets the Unity Input System device object that was disconnected. The reference remains available for inspection during event dispatch but should not be retained after the event handler returns.
Declaration
public InputDevice Device { get; set; }
Property Value
| Type | Description |
|---|---|
| InputDevice |
DeviceID
Gets or sets the Unity-assigned device ID that was previously reported in the matching InputDeviceConnectedEvent. Use this to correlate disconnections back to earlier connection events.
Declaration
public int DeviceID { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
DeviceType
Gets or sets the Scylla-classified type category of the disconnected device.
Declaration
public InputDeviceType DeviceType { get; set; }
Property Value
| Type | Description |
|---|---|
| InputDeviceType |