UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IInputDeviceModule.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
11#include "IInputDevice.h"
12
19
24{
25public:
27 {
28 static FName FeatureName = FName(TEXT("InputDevice"));
29 return FeatureName;
30 }
31
32 virtual void StartupModule() override
33 {
35 }
36
42 static inline IInputDeviceModule& Get()
43 {
44 return FModuleManager::LoadModuleChecked< IInputDeviceModule >( "InputDevice" );
45 }
46
52 static inline bool IsAvailable()
53 {
54 return FModuleManager::Get().IsModuleLoaded( "InputDevice" );
55 }
56
64
74 {
75 // If this is a primary device and it should be constructed for the input system then call the default implementation.
76 if (InParams.bInitAsPrimaryDevice)
77 {
79 }
80
81 return nullptr;
82 }
83};
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
CORE_API bool IsModuleLoaded(const FName InModuleName) const
Definition ModuleManager.cpp:347
static CORE_API FModuleManager & Get()
Definition ModuleManager.cpp:199
Definition NameTypes.h:617
Definition IInputDeviceModule.h:24
static bool IsAvailable()
Definition IInputDeviceModule.h:52
virtual TSharedPtr< class IInputDevice > CreateInputDevice(const TSharedRef< FGenericApplicationMessageHandler > &InMessageHandler)=0
static IInputDeviceModule & Get()
Definition IInputDeviceModule.h:42
virtual void StartupModule() override
Definition IInputDeviceModule.h:32
static FName GetModularFeatureName()
Definition IInputDeviceModule.h:26
virtual TSharedPtr< class IInputDevice > CreateInputDevice(const TSharedRef< FGenericApplicationMessageHandler > &InMessageHandler, FInputDeviceCreationParameters InParams)
Definition IInputDeviceModule.h:73
Definition IModularFeature.h:12
virtual void RegisterModularFeature(const FName Type, class IModularFeature *ModularFeature)=0
static CORE_API IModularFeatures & Get()
Definition ModularFeatures.cpp:9
Definition ModuleInterface.h:14
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition IInputDeviceModule.h:15
bool bInitAsPrimaryDevice
Definition IInputDeviceModule.h:17