engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IInputInterface类 参考abstract

Interface for the input interface. 更多...

#include <IInputInterface.h>

+ 类 IInputInterface 继承关系图:

Public 成员函数

virtual void SetDeviceProperty (int32 ControllerId, const FInputDeviceProperty *Property)
 Sets a property for a given controller id. 更多...
 
virtual void SetForceFeedbackChannelValue (int32 ControllerId, FForceFeedbackChannelType ChannelType, float Value)=0
 Sets the strength/speed of the given channel for the given controller id. 更多...
 
virtual void SetForceFeedbackChannelValues (int32 ControllerId, const FForceFeedbackValues &Values)=0
 Sets the strength/speed of all the channels for the given controller id. 更多...
 
virtual void SetHapticFeedbackValues (int32 ControllerId, int32 Hand, const FHapticFeedbackValues &Values)
 Sets the frequency and amplitude of haptic feedback channels for a given controller id. 更多...
 
virtual ~IInputInterface ()
 Virtual destructor.
 

详细描述

Interface for the input interface.

成员函数说明

◆ 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.

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

◆ 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

参数
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

在 FAndroidInputInterface, FHoloLensInputInterface, FIOSInputInterface, FAndroidInputInterface, FMacApplication , 以及 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

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

在 FAndroidInputInterface, FHoloLensInputInterface, FIOSInputInterface, FAndroidInputInterface, FMacApplication , 以及 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.

参数
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

被 FAndroidInputInterface, FAndroidInputInterface, FMacApplication , 以及 FWindowsApplication 重载.


该类的文档由以下文件生成: