unreal.InputAxisKeyMapping

class unreal.InputAxisKeyMapping(axis_name: Name = 'None', scale: float = 0.0, key: Key = [])

Bases: StructBase

Defines a mapping between an axis and key see: https://docs.unrealengine.com/latest/INT/Gameplay/Input/index.html

C++ Source:

  • Module: Engine

  • File: PlayerInput.h

Editor Properties: (see get_editor_property/set_editor_property)

  • axis_name (Name): [Read-Write] Friendly name of axis, e.g “MoveForward”

  • key (Key): [Read-Write] Key to bind it to.

  • scale (float): [Read-Write] Multiplier to use for the mapping when accumulating the axis value

property axis_name: Name

[Read-Write] Friendly name of axis, e.g “MoveForward”

Type:

(Name)

property key: Key

[Read-Write] Key to bind it to.

Type:

(Key)

property scale: float

[Read-Write] Multiplier to use for the mapping when accumulating the axis value

Type:

(float)