unreal.InputAxisKeyMapping

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

Bases: unreal.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] Axis Name: Friendly name of axis, e.g “MoveForward”

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

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

property axis_name

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

Type

(Name)

property key

[Read-Write] Key: Key to bind it to.

Type

(Key)

property scale

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

Type

(float)