Struct HidAccessDeniedInfo
Details of a controller whose raw HID node could not be opened, so its LED / vibration / adaptive
triggers cannot be driven. On Linux this almost always means the /dev/hidrawN node is still
root-only because the udev rules are not installed on the player's machine (see
UdevRulesRelativePath); it can also mean the pad was unplugged.
Inherited Members
Namespace: Serenity.Feedback.Infrastructure.Hid
Assembly: Serenity.UnityFeedback.Infrastructure.dll
Syntax
public readonly struct HidAccessDeniedInfo
Constructors
HidAccessDeniedInfo(string, string, string)
Declaration
public HidAccessDeniedInfo(string deviceName, string serial, string udevRulesFile)
Parameters
| Type | Name | Description |
|---|---|---|
| string | deviceName | |
| string | serial | |
| string | udevRulesFile |
Fields
DeviceName
The controller's display name (as Unity/SDL reports it), for a player-facing message.
Declaration
public readonly string DeviceName
Field Value
| Type | Description |
|---|---|
| string |
Serial
The controller's serial, when known; null otherwise.
Declaration
public readonly string Serial
Field Value
| Type | Description |
|---|---|
| string |
UdevRulesFile
Path (relative to the project/package) of the bundled udev rules the host needs.
Declaration
public readonly string UdevRulesFile
Field Value
| Type | Description |
|---|---|
| string |