![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <InputSettings.h>
Public Member Functions | |
| ENGINE_API | FHardwareDeviceIdentifier () |
| ENGINE_API | FHardwareDeviceIdentifier (const FName InClassName, const FName InHardwareDeviceIdentifier, EHardwareDevicePrimaryType InPrimaryType=EHardwareDevicePrimaryType::Unspecified, EHardwareDeviceSupportedFeatures::Type Flags=EHardwareDeviceSupportedFeatures::Unspecified) |
| ENGINE_API bool | HasAnySupportedFeatures (const EHardwareDeviceSupportedFeatures::Type FlagsToCheck) const |
| ENGINE_API bool | HasAllSupportedFeatures (const EHardwareDeviceSupportedFeatures::Type FlagsToCheck) const |
| ENGINE_API bool | IsValid () const |
| ENGINE_API FString | ToString () const |
| ENGINE_API bool | operator== (const FHardwareDeviceIdentifier &Other) const |
| ENGINE_API bool | operator!= (const FHardwareDeviceIdentifier &Other) const |
Public Attributes | |
| FName | InputClassName |
| FName | HardwareDeviceIdentifier |
| EHardwareDevicePrimaryType | PrimaryDeviceType |
| int32 | SupportedFeaturesMask |
Friends | |
| ENGINE_API friend uint32 | GetTypeHash (const FHardwareDeviceIdentifier &InDevice) |
| ENGINE_API friend FArchive & | operator<< (FArchive &Ar, FHardwareDeviceIdentifier &InDevice) |
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
| FHardwareDeviceIdentifier::FHardwareDeviceIdentifier | ( | ) |
| FHardwareDeviceIdentifier::FHardwareDeviceIdentifier | ( | const FName | InClassName, |
| const FName | InHardwareDeviceIdentifier, | ||
| EHardwareDevicePrimaryType | InPrimaryType = EHardwareDevicePrimaryType::Unspecified, |
||
| EHardwareDeviceSupportedFeatures::Type | Flags = EHardwareDeviceSupportedFeatures::Unspecified |
||
| ) |
| bool FHardwareDeviceIdentifier::HasAllSupportedFeatures | ( | const EHardwareDeviceSupportedFeatures::Type | FlagsToCheck | ) | const |
Returns true if this hardware device has ALL of the given supported feature flags
| bool FHardwareDeviceIdentifier::HasAnySupportedFeatures | ( | const EHardwareDeviceSupportedFeatures::Type | FlagsToCheck | ) | const |
Returns true if this hardware device has ANY of the given supported feature flags
| bool FHardwareDeviceIdentifier::IsValid | ( | ) | const |
Returns true if this hardware device Identifier has valid names
| bool FHardwareDeviceIdentifier::operator!= | ( | const FHardwareDeviceIdentifier & | Other | ) | const |
| bool FHardwareDeviceIdentifier::operator== | ( | const FHardwareDeviceIdentifier & | Other | ) | const |
| FString FHardwareDeviceIdentifier::ToString | ( | ) | const |
Returns a string containing the Input Class Name and HardwareDeviceIdentifier properties concatenated together.
|
friend |
|
friend |
|
static |
|
static |
Hardware device ID that represents a keyboard and mouse. This is what will be set when an Input Event's FKey is not a gamepad key.
|
static |
| FName FHardwareDeviceIdentifier::HardwareDeviceIdentifier |
The name of this hardware device. This should correspond with a FInputDeviceScope that is used by an IInputDevice
| FName FHardwareDeviceIdentifier::InputClassName |
The name of the Input Class that uses this hardware device. This should correspond with a FInputDeviceScope that is used by an IInputDevice
|
static |
An Invalid Hardware Device Identifier.
| EHardwareDevicePrimaryType FHardwareDeviceIdentifier::PrimaryDeviceType |
The generic type that this hardware identifies as. This can be used to easily determine behaviors
| int32 FHardwareDeviceIdentifier::SupportedFeaturesMask |
Flags that represent this hardware device's traits