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.
|
inlinevirtual |
Sets a property for a given controller id.
Will be ignored for devices which don't support the property.
| ControllerId | the id of the controller whose property is to be applied |
| Property | Base class pointer to property that will be applied |
|
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
| ControllerId | the id of the controller whose value is to be set |
| ChannelType | the type of channel whose value should be set |
| Value | strength or speed of feedback, 0.0f to 1.0f. 0.0f will disable |
在 FAndroidInputInterface, FHoloLensInputInterface, FIOSInputInterface, FAndroidInputInterface, FMacApplication , 以及 FWindowsApplication 内被实现.
|
pure virtual |
Sets the strength/speed of all the channels for the given controller id.
NOTE: Unsupported channels are silently ignored
| ControllerId | the id of the controller whose value is to be set |
| FForceFeedbackChannelValues | strength or speed of feedback for all channels |
在 FAndroidInputInterface, FHoloLensInputInterface, FIOSInputInterface, FAndroidInputInterface, FMacApplication , 以及 FWindowsApplication 内被实现.
|
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.
| ControllerId | ID of the controller to issue haptic feedback for |
| HandId | Which hand id (e.g. left or right) to issue the feedback for. These usually correspond to EControllerHands |
| Values | Frequency and amplitude to haptics at |
被 FAndroidInputInterface, FAndroidInputInterface, FMacApplication , 以及 FWindowsApplication 重载.