Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework > API/Editor/EditorInteractiveToolsFramework/Behaviors
Inheritance Hierarchy
- UClickDragInputBehavior
- IClickDragBehaviorTarget
- UMultiButtonClickDragBehavior
References
| Module | EditorInteractiveToolsFramework |
| Header | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/Behaviors/MultiButtonClickDragBehavior.h |
| Include | #include "Behaviors/MultiButtonClickDragBehavior.h" |
Syntax
UCLASS (MinimalAPI)
class UMultiButtonClickDragBehavior :
public UClickDragInputBehavior,
public IClickDragBehaviorTarget
Remarks
MultiButtonClickDragBehavior is an implementation of UClickDragInputBehavior that can manage several mouse buttons at once and also implements IClickDragBehaviorTarget directly, via a set of local lambda functions. To use/customize this class the client replaces the lambda functions with their own and enables/disables the buttons to capture.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TUniqueFunction< FInputRayHit(const FInputDeviceRay &PressPos)> | CanBeginClickDragFunc | Lambda implementation of CanBeginClickDragSequence | |
| uint8[3] | CapturedInputs | Mouse buttons that need to be captured. Left=0, Middle=1, Right=2 | |
| TUniqueFunction< void(const FInputDeviceRay &PressPos)> | OnClickDragFunc | Lambda implementation of OnClickDrag | |
| TUniqueFunction< void(const FInputDeviceRay &PressPos)> | OnClickPressFunc | Lambda implementation of OnClickPress | |
| TUniqueFunction< void(const FInputDeviceRay &ReleasePos)> | OnClickReleaseFunc | Lambda implementation of OnClickRelease | |
| TUniqueFunction< void(const FInputDeviceState &Input)> | OnStateUpdated | Lambda implementation of OnStateUpdated | |
| TUniqueFunction< void()> | OnTerminateFunc | Lambda implementation of OnTerminateDragSequence |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FInputCaptureUpdate | BeginCapture
(
const FInputDeviceState& Input, |
||
| FInputRayHit | CanBeginClickDragSequence
(
const FInputDeviceRay& InPressPos |
||
| bool | DidAnyButtonChangeState
(
const FInputDeviceState& InInput |
||
| void | DisableButton
(
const FKey& InButton |
Disable InButton so that it's not captured | |
| void | EnableButton
(
const FKey& InButton |
Enable InButton so that in can be captured | |
| bool | |||
| bool | |||
| bool | |||
| void | Initialize () |
UClickDragInputBehavior implementation. | |
| bool | IsAnyButtonDown
(
const FInputDeviceState& InInput |
||
| void | OnClickDrag
(
const FInputDeviceRay& InDragPos |
||
| void | OnClickPress
(
const FInputDeviceRay& InPressPos |
||
| void | OnClickRelease
(
const FInputDeviceRay& InReleasePos |
||
| void | |||
| FInputCaptureUpdate | UpdateCapture
(
const FInputDeviceState& Input, |
||
| FInputCaptureRequest | WantsCapture
(
const FInputDeviceState& Input |