DeviceConnectionEventArgs
Summary
Provides data for gamepad hardware lifecycle changes, such as connection or disconnection.
Definition
Namespace: SDT4.Managed.Input.Gamepad.Events
Assembly: SDT4.Managed.Input.dll
struct DeviceConnectionEventArgs
Implements:
IEquatable<DeviceConnectionEventArgs>
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; set; Sender |
Object? | The source object that dispatched the event, or |
public get; set; DeviceId |
GamepadIdentifier | The identifier assigned to the gamepad device. |
public get; set; DeviceGuid |
Guid | The persistent hardware GUID identifying the physical device across reconnections. |
public get; set; DeviceName |
String | The human-readable product or driver name of the device. |
public get; set; IsConnected |
Boolean |
Methods
public virtual String ToString()
Returns:
public virtual Int32 GetHashCode()
Returns:
public virtual Boolean Equals(Object obj)
Parameters:
obj(Object):
Returns:
public Boolean Equals(DeviceConnectionEventArgs other)
Parameters:
other(DeviceConnectionEventArgs):
Returns:
public Void Deconstruct(out Object? Sender, out GamepadIdentifier DeviceId, out Guid DeviceGuid, out String DeviceName, out Boolean IsConnected)
Parameters:
-
Sender(Object?): -
DeviceId(GamepadIdentifier): -
DeviceGuid(Guid): -
DeviceName(String): -
IsConnected(Boolean):