unreal.InputAxisKeyMapping

class unreal.InputAxisKeyMapping(axis_name='None', scale=1.0, key=[])

Bases: unreal.StructBase

Defines a mapping between an axis and key 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
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