![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GenericInputDeviceMap.h>
Public Member Functions | |
| TInputDeviceMap ()=default | |
| ~TInputDeviceMap ()=default | |
| FInputDeviceId | GetOrCreateDeviceId (const TDeviceKeyType &DeviceKey) |
| FInputDeviceId | MapDefaultInputDevice (const TDeviceKeyType &DeviceKey) |
| FInputDeviceId | FindDeviceId (const TDeviceKeyType &DeviceKey) const |
| FInputDeviceId | FindDeviceIdChecked (const TDeviceKeyType &DeviceKey) const |
| const TDeviceKeyType & | GetDeviceKeyChecked (const FInputDeviceId DeviceId) const |
| const TDeviceKeyType * | FindDeviceKey (const FInputDeviceId DeviceId) const |
Protected Attributes | |
| TMap< TDeviceKeyType, FInputDeviceId > | MappedDeviceIds |
| TMap< FInputDeviceId, TDeviceKeyType > | MappedIdToKey |
An interface which can be added to any IInputDevice (or any other type which is creating Human Interface Devices) to store it's unique identifier for those physical devices and associate them with a FInputDeviceId so that the rest of the Unreal Engine can interact with them
Some input interfaces use simple int32's to identify input devices, while others may have more specific GUID types types which are needed.
|
default |
|
default |
|
inline |
Returns the FInputDeviceId for the given device key.
Returns FInputDeviceId::Invalid if it is not yet mapped.
|
inline |
Returns the FInputDeviceId associated with the given device key. Asserts if not found.
|
inline |
Returns the device key for the given FInputDeviceId. Nullptr if not found.
|
inline |
Returns the device key for the given FInputDeviceId. Nullptr if not found.
|
inline |
Given the DeviceKey, find it's associated FInputDeviceId.
If one does not exist yet, such as for a newly connected device, then create one from the IPlatformInputDeviceMapper.
|
inline |
Maps a DeviceKey to the default FInputDeviceId which has the internal value 0. Returns the default FInputDeviceId for straightforward use.
|
protected |
Map of the assigned DeviceKeyType to their assigned FInputDeviceId's from the engine.
|
protected |
A map of the assigned FInputDeviceId to their associated Device Key type for fast lookup.