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 if the device was connected or reconnected; if it was disconnected.

Methods

public virtual String ToString()

Returns:


public virtual Int32 GetHashCode()

Returns:


public virtual Boolean Equals(Object obj)

Parameters:

Returns:


public Boolean Equals(DeviceConnectionEventArgs other)

Parameters:

Returns:


public Void Deconstruct(out Object? Sender, out GamepadIdentifier DeviceId, out Guid DeviceGuid, out String DeviceName, out Boolean IsConnected)

Parameters: