Navigation
API > API/Runtime > API/Runtime/ApplicationCore
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.
| Name | TInputDeviceMap |
| Type | class |
| Header File | /Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/GenericInputDeviceMap.h |
| Include Path | #include "GenericPlatform/GenericInputDeviceMap.h" |
Syntax
template<class TDeviceKeyType>
class TInputDeviceMap
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TInputDeviceMap() |
GenericPlatform/GenericInputDeviceMap.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TInputDeviceMap() |
GenericPlatform/GenericInputDeviceMap.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FInputDeviceId FindDeviceId
(
const TDeviceKeyType& DeviceKey |
Returns the FInputDeviceId for the given device key. | GenericPlatform/GenericInputDeviceMap.h | |
FInputDeviceId FindDeviceIdChecked
(
const TDeviceKeyType& DeviceKey |
Returns the FInputDeviceId associated with the given device key. | GenericPlatform/GenericInputDeviceMap.h | |
const TDeviceKeyType * FindDeviceKey
(
const FInputDeviceId DeviceId |
Returns the device key for the given FInputDeviceId. | GenericPlatform/GenericInputDeviceMap.h | |
const TDeviceKeyType & GetDeviceKeyChecked
(
const FInputDeviceId DeviceId |
Returns the device key for the given FInputDeviceId. | GenericPlatform/GenericInputDeviceMap.h | |
FInputDeviceId GetOrCreateDeviceId
(
const TDeviceKeyType& DeviceKey |
Given the DeviceKey, find it's associated FInputDeviceId. | GenericPlatform/GenericInputDeviceMap.h | |
FInputDeviceId MapDefaultInputDevice
(
const TDeviceKeyType& DeviceKey |
Maps a DeviceKey to the default FInputDeviceId which has the internal value 0. | GenericPlatform/GenericInputDeviceMap.h |