unreal.EnhancedActionKeyMapping

class unreal.EnhancedActionKeyMapping(action=None, key=[], triggers=[], modifiers=[])

Bases: unreal.StructBase

Defines a mapping between a key activation and the resulting enhanced action An key could be a button press, joystick axis movement, etc. An enhanced action could be MoveForward, Jump, Fire, etc.

C++ Source:

  • Plugin: EnhancedInput

  • Module: EnhancedInput

  • File: EnhancedActionKeyMapping.h

Editor Properties: (see get_editor_property/set_editor_property)

  • action (InputAction): [Read-Write] Action to be affected by the key

  • key (Key): [Read-Write] Key that affect the action.

  • modifiers (Array(InputModifier)): [Read-Write] Modifiers applied to the raw key value. These are applied sequentially in array order.

  • triggers (Array(InputTrigger)): [Read-Write] Trigger qualifiers. If any trigger qualifiers exist the mapping will not trigger unless: If there are any Explicit triggers in this list at least one of them must be met. All Implicit triggers in this list must be met.

property action

[Read-Only] Action to be affected by the key

Type

(InputAction)

property key

[Read-Only] Key that affect the action.

Type

(Key)

property modifiers

[Read-Write] Modifiers applied to the raw key value. These are applied sequentially in array order.

Type

(Array(InputModifier))

property triggers

[Read-Write] Trigger qualifiers. If any trigger qualifiers exist the mapping will not trigger unless: If there are any Explicit triggers in this list at least one of them must be met. All Implicit triggers in this list must be met.

Type

(Array(InputTrigger))