Navigation
API > API/Plugins > API/Plugins/GameInputBase
Represents a single unique device that Microsoft's Game Input API detects. Each device has a Vendor ID and Product ID. It is possible (and common) for Game Input devices to have the same VendorId's.
This is used so that we can easily make a map of each unique device to some metadata about it's controller bindings.
If you are unsure about what the vendor or product ID's are, then you can look at the logs and they will be there in the LogGameInput if you search for "VendorId" or "ProductId".
You can also place a breakpoint on the device connection status changed to see the value there from the GameInputDeviceInfo.
| Name | FGameInputDeviceIdentifier |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/GameInput/Source/GameInputBase/Public/GameInputDeveloperSettings.h |
| Include Path | #include "GameInputDeveloperSettings.h" |
Syntax
USTRUCT ()
struct FGameInputDeviceIdentifier
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| GameInputDeveloperSettings.h | |||
FGameInputDeviceIdentifier
(
uint16 InVendorId, |
GameInputDeveloperSettings.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ProductId | uint16 | The unique Product ID of this device | GameInputDeveloperSettings.h |
|
| VendorId | uint16 | The Vendor ID of this device | GameInputDeveloperSettings.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FString ToString () |
Returns a string representing this Game Input device identifier. | GameInputDeveloperSettings.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FGameInputDeviceIdentifier& Other |
GameInputDeveloperSettings.h | ||
bool operator==
(
const FGameInputDeviceIdentifier& Other |
GameInputDeveloperSettings.h |