unreal.MappingQueryIssue

class unreal.MappingQueryIssue(issue=MappingQueryIssue.NO_ISSUE, blocking_context=None, blocking_action=None)

Bases: unreal.StructBase

Potential issue raised with a mapping request

C++ Source:

  • Plugin: EnhancedInput

  • Module: EnhancedInput

  • File: InputMappingQuery.h

Editor Properties: (see get_editor_property/set_editor_property)

  • blocking_action (InputAction): [Read-Write] Action within the input context that caused the blockage

  • blocking_context (InputMappingContext): [Read-Write] Input context that contains a blocking action bound to the queried key

  • issue (MappingQueryIssue): [Read-Write] Issue

COLLISION_WITH_MAPPING_IN_SAME_CONTEXT

Mapping will be functional, but a collision with another mapping within this context may cause issues.

Type

8

FORCES_TYPE_DEMOTION

Trying to bind an FKey with a more complex type than the bound action supports (this could behave oddly e.g. 2D Gamepad axis bound to a 1D axis will ignore Y axis)

Type

32

FORCES_TYPE_PROMOTION

bool -> Axis1D promotions are never considered forced.

Type

16

Type

Trying to bind an FKey with a less complex type than the bound action expects (e.g. Keyboard key bound to a 2D Gamepad axis. May not be desirable) Note

HIDDEN_BY_EXISTING_MAPPING

Mapping will not be functional, due to an existing mapping blocking it.

Type

4

HIDES_EXISTING_MAPPING

Mapping will cause an existing mapping to be hidden and/or need remapping.

Type

2

NO_ISSUE

Mapping will not affect any existing mappings and is safe to apply.

Type

0

RESERVED_BY_ACTION

Mapping has been reserved for the exclusive use of another action. The new mapping should be refused.

Type

1

property blocking_action

[Read-Only] Action within the input context that caused the blockage

Type

(InputAction)

property blocking_context

[Read-Only] Input context that contains a blocking action bound to the queried key

Type

(InputMappingContext)

property issue

[Read-Only] Issue

Type

(MappingQueryIssue)