| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/BaseBehaviors/MultiClickSequenceInputBehavior.h |
Include |
#include "BaseBehaviors/MultiClickSequenceInputBehavior.h" |
class UMultiClickSequenceInputBehavior : public UAnyButtonInputBehavior
UMultiClickSequenceInputBehavior implements a generic multi-click-sequence input behavior. For example this behavior could be used to implement a multi-click polygon-drawing interaction.
The internal state machine works as follows: 1) on input-device-button-press, check if target wants to begin sequence. If so, begin capture. 2) on button release, check if target wants to continue or terminate sequence a) if terminate, release capture b) if continue, do nothing (capture continues between presses)
The target will receive "preview" notifications (basically hover) during updates where there is not a release. This can be used to (eg) update a rubber-band selection end point
Name | Description | ||
---|---|---|---|
|
ModifierCheckFunc |
The first click will only be accepted if this function returns true (or is null) |
|
|
Modifiers |
The modifier set for this behavior |
|
|
State |
||
|
Target |
Click Target object |
Name | Description | |
---|---|---|
|
UMultiClickSequenceInputBehavior() |
Name | Description | ||
---|---|---|---|
|
Initialize ( |
Initialize this behavior with the given Target |
Name | Description | ||
---|---|---|---|
|
FInputCaptur... |
BeginCapture ( |
Called after WantsCapture() returns a capture request that was accepted |
|
FInputCaptur... |
BeginHoverCapture ( |
Called after WantsHoverCapture() returns a capture request that was accepted |
|
EndHoverCapture() |
If a different hover capture begins, focus is lost, a tool starts, etc, any active hover visualization needs to terminate |
|
|
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... |
UpdateHoverCapture ( |
Called on each new hover input event, ie if no other behavior is actively capturing input |
|
FInputCaptur... |
WantsCapture ( |
Given the input state, does this Behavior want to begin capturing some input devices? |
|
FInputCaptur... |
WantsHoverCapture ( |
Given the input state, does this Behavior want to begin capturing some input devices for hover |
|
WantsHoverEvents() |
Hover support (optional)return true if this Behavior supports hover (ie passive input events) |
Name |
Description |
|
---|---|---|
|
ESequenceState |