InputManager Class - NocturnalWisp/Tynted-Engine GitHub Wiki

Add Binding

Summary
Registers a new input mapping.

Implementation

InputManager.AddBinding(KeyBinding keyBinding)

Vars

  • keyBinding - The binding to map input to.

Remove Binding

Summary
Removes an input mapping based on it's name.

Implementation

InputManager.RemoveBinding(string name)

Vars

  • name - The name of the input binding.

Get Binding

Summary
Returns an input mapping based on it's name.

Implementation

InputManager.GetBinding(string name)

Vars

  • name - The name of the input binding.

Returns

  • KeyBinding - The resulting key binding if found.