| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/BaseBehaviors/ClickDragBehavior.h |
Include |
#include "BaseBehaviors/ClickDragBehavior.h" |
class UClickDragInputBehavior : public UAnyButtonInputBehavior
UClickDragInputBehavior implements a standard "button-click-drag"-style input behavior. An IClickDragBehaviorTarget instance must be provided which is manipulated by this behavior.
The state machine works as follows: 1) on input-device-button-press, call Target::CanBeginClickDragSequence to determine if capture should begin 2) on input-device-move, call Target::OnClickDrag 3) on input-device-button-release, call Target::OnClickRelease
If a ForceEndCapture occurs we call Target::OnTerminateDragSequence
Name | Description | ||
---|---|---|---|
|
bInClickDrag |
Set to true if we are in a capture |
|
|
bUpdateModifiersDuringDrag |
If true, then we will update Modifier states in UpdateCapture(). |
|
|
ModifierCheckFunc |
WantsCapture() will only return capture request if this function returns true (or is null) |
|
|
Modifiers |
The modifier set for this behavior |
|
|
Target |
Click Target object |
Name | Description | |
---|---|---|
|
UClickDragInputBehavior() |
Name | Description | ||
---|---|---|---|
|
Initialize ( |
Initialize this behavior with the given Target |
|
|
OnClickDragInternal ( |
Internal function that forwards click evens to Target::OnClickDrag, you can customize behavior here |
|
|
OnClickPressInternal ( |
Internal function that forwards click evens to Target::OnClickPress, you can customize behavior here |
|
|
OnClickReleaseInternal ( |
Internal function that forwards click evens to Target::OnClickRelease, you can customize behavior here |
Name | Description | ||
---|---|---|---|
|
FInputCaptur... |
BeginCapture ( |
Called after WantsCapture() returns a capture request that was accepted |
|
ForceEndCapture ( |
If this is called, the Behavior has forcibly lost capture (eg due to app losing focus for example) and needs to clean up accordingly |
|
|
FInputCaptur... |
UpdateCapture ( |
Called for each new input event during a capture sequence. |
|
FInputCaptur... |
WantsCapture ( |
Given the input state, does this Behavior want to begin capturing some input devices? |