UKeyAsModifierInputBehavior

[UKeyAsModifierInputBehavior](API\Runtime\InteractiveToolsFramework\BaseBehaviors\UKeyAsModifierInputBehavior) converts a specific key press/release into a "Modifier" toggle via the [IModifierToggleBehaviorTarget](API\Runtime\InteractiveToolsFramework\BaseBehaviors\IModifierToggleBehaviorTarget) interface

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/BaseBehaviors/KeyAsModifierInputBehavior.h

Include

#include "BaseBehaviors/KeyAsModifierInputBehavior.h"

Syntax

class UKeyAsModifierInputBehavior : public UInputBehavior

Remarks

UKeyAsModifierInputBehavior converts a specific key press/release into a "Modifier" toggle via the IModifierToggleBehaviorTarget interface

Variables

Name Description

Public variable

TFunction< bool...

 

ModifierCheckFunc

WantsCapture() will only return capture request if this function returns true (or is null) Intended to be used for alt/ctrl/cmd/shift modifiers on the main ModifierKey

Protected variable

FKey

 

ModifierKey

Key that is used as modifier

Protected variable

FInputBehaviorM...

 

Modifiers

Modifier set for this behavior, internally initialized with check on ModifierKey

Protected variable

FKey

 

PressedButton

The key that was pressed to activate capture

Protected variable

IModifierToggle...

 

Target

Modifier Target object

Constructors

Functions

Name Description

Public function Virtual

void

 

Initialize

(
    IModifierToggleBehaviorTarget*...,
    int ModifierID,
    const FKey& ModifierKey
)

Initialize this behavior with the given Target

Overridden from UInputBehavior

Name Description

Public function Virtual

FInputCaptur...

 

BeginCapture

(
    const FInputDeviceState& InputStat...,
    EInputCaptureSide eSide
)

Called after WantsCapture() returns a capture request that was accepted

Public function Virtual

void

 

ForceEndCapture

(
    const FInputCaptureData& CaptureDa...
)

If this is called, the Behavior has forcibly lost capture (eg due to app losing focus for example) and needs to clean up accordingly

Public function Virtual

EInputDevice...

 

GetSupportedDevices()

Which device types does this Behavior support

Public function Virtual

FInputCaptur...

 

UpdateCapture

(
    const FInputDeviceState& InputStat...,
    const FInputCaptureData& CaptureDa...
)

Called for each new input event during a capture sequence.

Public function Virtual

FInputCaptur...

 

WantsCapture

(
    const FInputDeviceState& InputStat...
)

Given the input state, does this Behavior want to begin capturing some input devices?

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss