Navigation
API > API/Runtime > API/Runtime/Engine
An identifier that can be used to determine what input devices are available based on the FInputDeviceScope. These mappings should match a FInputDeviceScope that is used by an IInputDevice
| Name | FHardwareDeviceIdentifier |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/InputSettings.h |
| Include Path | #include "GameFramework/InputSettings.h" |
Syntax
USTRUCT (BlueprintType )
struct FHardwareDeviceIdentifier
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| GameFramework/InputSettings.h | |||
FHardwareDeviceIdentifier
(
const FName InClassName, |
GameFramework/InputSettings.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DefaultGamepad | FHardwareDeviceIdentifier | Hardware device ID that represents a default, generic, gamepad. | GameFramework/InputSettings.h |
| DefaultKeyboardAndMouse | FHardwareDeviceIdentifier | Hardware device ID that represents a keyboard and mouse. | GameFramework/InputSettings.h |
| DefaultMobileTouch | FHardwareDeviceIdentifier | Hardware device id that represents a default, generic, mobile touch input (tablet, phone, etc) | GameFramework/InputSettings.h |
| Invalid | FHardwareDeviceIdentifier | An Invalid Hardware Device Identifier. | GameFramework/InputSettings.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HardwareDeviceIdentifier | FName | The name of this hardware device. | GameFramework/InputSettings.h |
|
| InputClassName | FName | The name of the Input Class that uses this hardware device. | GameFramework/InputSettings.h |
|
| PrimaryDeviceType | EHardwareDevicePrimaryType | The generic type that this hardware identifies as. This can be used to easily determine behaviors | GameFramework/InputSettings.h |
|
| SupportedFeaturesMask | int32 | Flags that represent this hardware device's traits | GameFramework/InputSettings.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool HasAllSupportedFeatures
(
const EHardwareDeviceSupportedFeatures::Type FlagsToCheck |
Returns true if this hardware device has ALL of the given supported feature flags | GameFramework/InputSettings.h | |
bool HasAnySupportedFeatures
(
const EHardwareDeviceSupportedFeatures::Type FlagsToCheck |
Returns true if this hardware device has ANY of the given supported feature flags | GameFramework/InputSettings.h | |
bool IsValid() |
Returns true if this hardware device Identifier has valid names | GameFramework/InputSettings.h | |
FString ToString() |
Returns a string containing the Input Class Name and HardwareDeviceIdentifier properties concatenated together. | GameFramework/InputSettings.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FHardwareDeviceIdentifier& Other |
GameFramework/InputSettings.h | ||
bool operator==
(
const FHardwareDeviceIdentifier& Other |
GameFramework/InputSettings.h |