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