Navigation
API > API/Plugins > API/Plugins/EnhancedInput
Inheritance Hierarchy
- UInputComponent
- UEnhancedInputComponent
References
| Module | EnhancedInput |
| Header | /Engine/Plugins/EnhancedInput/Source/EnhancedInput/Public/EnhancedInputComponent.h |
| Include | #include "EnhancedInputComponent.h" |
Syntax
UCLASS (Transient, Config=Input, HideCategories=(Activation, "Components|Activation"))
class UEnhancedInputComponent : public UInputComponent
Remarks
Implement an Actor component for input bindings.
An Enhanced Input Component is a transient component that enables an Actor to bind enhanced actions to delegate functions, or monitor those actions. Input components are processed from a stack managed by the PlayerController and processed by the PlayerInput. These bindings will not consume input events, but this behaviour can be replicated using UInputMappingContext::Priority.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bShouldFireDelegatesInEditor | If true, then this input component's delegate bindings will fire with a FEditorScriptExecutionGuard around it. | |
| TArray< TUniquePtr< FInputDebugKeyBinding > > | DebugKeyBindings | Debug key bindings, available in non-shipping builds only. | |
| TArray< TUniquePtr< FEnhancedInputActionEventBinding > > | EnhancedActionEventBindings | The collection of action bindings. | |
| TArray< FEnhancedInputActionValueBinding > | EnhancedActionValueBindings | The collection of action value bindings. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UEnhancedInputComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FEnhancedInputActionEventBinding & | BindAction
(
const UInputAction* Action, |
Binds to an object UFUNCTION | |
| FInputActionBinding & | BindAction
(
const FName ActionName, |
||
| FEnhancedInputActionEventBinding & | BindAction
(
const UInputAction* Action, |
||
| FEnhancedInputActionEventBinding & | BindAction
(
const UInputAction* Action, |
||
| FEnhancedInputActionEventBinding & | BindAction
(
const UInputAction* Action, |
||
| FInputActionBinding & | BindAction
(
const FName ActionName, |
||
| FInputActionBinding & | BindAction
(
const FName ActionName, |
Delete all InputComponent binding helpers. Indicates intentions going forward and improves intellisense/VAX when working with EnhancedInputCompoennts. | |
| FEnhancedInputActionEventBinding & | BindActionInstanceLambda
(
const UInputAction* Action, |
Bind a lambda to receive the action instance data from an input event. | |
| FEnhancedInputActionValueBinding & | BindActionValue
(
const UInputAction* Action |
Binds a UInputAction assigned via UInputMappingContext to this component. | |
| FEnhancedInputActionEventBinding & | BindActionValueLambda
(
const UInputAction* Action, |
Binds a lambda expression to receive the input action value form an input event. | |
| FInputAxisBinding & | BindAxis
(
const FName AxisName, |
||
| FInputAxisBinding & | BindAxis
(
const FName AxisName |
||
| FInputAxisKeyBinding & | BindAxisKey
(
const FKey AxisKey |
||
| FInputAxisKeyBinding & | BindAxisKey
(
const FKey AxisKey, |
||
| FInputDebugKeyBinding & | BindDebugKey
(
const FInputChord Chord, |
Binds a chord event to a delegate function in development builds only. | |
| FInputDebugKeyBinding & | BindDebugKey
(
const FInputChord Chord, |
Binds to an object UFUNCTION | |
| FInputGestureBinding & | BindGesture
(
const FKey GestureKey, |
||
| FInputKeyBinding & | BindKey
(
const FInputChord Chord, |
||
| FInputKeyBinding & | BindKey
(
const FKey Key, |
||
| FInputTouchBinding & | BindTouch
(
const EInputEvent KeyEvent, |
||
| FInputVectorAxisBinding & | BindVectorAxis
(
const FKey AxisKey, |
||
| FInputVectorAxisBinding & | BindVectorAxis
(
const FKey AxisKey |
||
| void | Removes all action bindings. | ||
| void | Removes all action bindings. | ||
| void | |||
| void | ClearBindingsForObject
(
UObject* InOwner |
Clears any input callback delegates from the given UObject | |
| void | |||
| const TArray< TUniquePtr< FEnhancedInputActionEventBinding > > & | Gets all action bindings of type | ||
| const TArray< FEnhancedInputActionValueBinding > & | |||
| FInputActionValue | GetBoundActionValue
(
const UInputAction* Action |
Helper function to pull the action value for a bound action value. | |
| const TArray< TUniquePtr< FInputDebugKeyBinding > > & | |||
| bool | HasBindings () |
Checks whether this component has any input bindings. | |
| bool | RemoveActionEventBinding
(
const int32 BindingIndex |
Removes the action binding at the specified index. | |
| bool | RemoveActionValueBinding
(
const int32 BindingIndex |
||
| bool | RemoveBinding
(
const FInputBindingHandle& BindingToRemove |
Removes an arbitrary binding | |
| bool | RemoveBindingByHandle
(
const uint32 Handle |
Removes the binding with the specified handle. Binding handles are unique across all bindings. | |
| bool | RemoveDebugKeyBinding
(
const int32 BindingIndex |
||
| void | SetShouldFireDelegatesInEditor
(
const bool bInNewValue |
||
| bool |
See Also
https://docs.unrealengine.com/latest/INT/Gameplay/Input/index.html