UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IInputInterface Class Referenceabstract

#include <IInputInterface.h>

+ Inheritance diagram for IInputInterface:

Public Member Functions

virtual ~IInputInterface ()
 
virtual void SetForceFeedbackChannelValue (int32 ControllerId, FForceFeedbackChannelType ChannelType, float Value)=0
 
virtual void SetForceFeedbackChannelValues (int32 ControllerId, const FForceFeedbackValues &Values)=0
 
virtual void SetHapticFeedbackValues (int32 ControllerId, int32 Hand, const FHapticFeedbackValues &Values)
 
virtual void SetDeviceProperty (int32 ControllerId, const FInputDeviceProperty *Property)
 
virtual void SetLightColor (int32 ControllerId, FColor Color)=0
 
virtual void ResetLightColor (int32 ControllerId)=0
 

Detailed Description

Interface for the input interface.

Constructor & Destructor Documentation

◆ ~IInputInterface()

virtual IInputInterface::~IInputInterface ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

◆ ResetLightColor()

virtual void IInputInterface::ResetLightColor ( int32  ControllerId)
pure virtual

◆ SetDeviceProperty()

virtual void IInputInterface::SetDeviceProperty ( int32  ControllerId,
const FInputDeviceProperty Property 
)
inlinevirtual

Sets a property for a given controller id. Will be ignored for devices which don't support the property.

Parameters
ControllerIdthe id of the controller whose property is to be applied
PropertyBase class pointer to property that will be applied

Reimplemented in FWindowsApplication.

◆ SetForceFeedbackChannelValue()

virtual void IInputInterface::SetForceFeedbackChannelValue ( int32  ControllerId,
FForceFeedbackChannelType  ChannelType,
float  Value 
)
pure virtual

Sets the strength/speed of the given channel for the given controller id. NOTE: If the channel is not supported, the call will silently fail

Parameters
ControllerIdthe id of the controller whose value is to be set
ChannelTypethe type of channel whose value should be set
Valuestrength or speed of feedback, 0.0f to 1.0f. 0.0f will disable

Implemented in FAppleControllerInterface, FAndroidInputInterface, FIOSInputInterface, FLinuxApplication, FMacApplication, FNullApplication, and FWindowsApplication.

◆ SetForceFeedbackChannelValues()

virtual void IInputInterface::SetForceFeedbackChannelValues ( int32  ControllerId,
const FForceFeedbackValues Values 
)
pure virtual

Sets the strength/speed of all the channels for the given controller id. NOTE: Unsupported channels are silently ignored

Parameters
ControllerIdthe id of the controller whose value is to be set
FForceFeedbackChannelValuesstrength or speed of feedback for all channels

Implemented in FAppleControllerInterface, FAndroidInputInterface, FIOSInputInterface, FLinuxApplication, FMacApplication, FNullApplication, and FWindowsApplication.

◆ SetHapticFeedbackValues()

virtual void IInputInterface::SetHapticFeedbackValues ( int32  ControllerId,
int32  Hand,
const FHapticFeedbackValues Values 
)
inlinevirtual

Sets the frequency and amplitude of haptic feedback channels for a given controller id. Some devices / platforms may support just haptics, or just force feedback.

Parameters
ControllerIdID of the controller to issue haptic feedback for
HandIdWhich hand id (e.g. left or right) to issue the feedback for. These usually correspond to EControllerHands
ValuesFrequency and amplitude to haptics at

Reimplemented in FAndroidInputInterface, FLinuxApplication, FMacApplication, FNullApplication, and FWindowsApplication.

◆ SetLightColor()

virtual void IInputInterface::SetLightColor ( int32  ControllerId,
FColor  Color 
)
pure virtual

The documentation for this class was generated from the following file: