Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 1.13 KB

PlayerInput-AddAxisMapping(string_string_float).md

File metadata and controls

19 lines (16 loc) · 1.13 KB

PlayerInput.AddAxisMapping(string, string, float) Method

Adds a player-specific mapping between an axis and key

public void AddAxisMapping(string axisName, string key, float scale=1f);

Parameters

axisName System.String
Friendly name of axis

key System.String
Key to bind in accordance with Keys

scale System.Single
Multiplier to use for the mapping when accumulating the axis value