Table of Contents

Class InputActionMap

Namespace
Axolotl2D.Input
Assembly
Axolotl2D.dll

A scene-scoped collection of gameplay actions.

public sealed class InputActionMap : IDisposable
Inheritance
InputActionMap
Implements
Inherited Members

Constructors

InputActionMap(InputActionSystem)

public InputActionMap(InputActionSystem input)

Parameters

input InputActionSystem

Properties

Actions

public IReadOnlyCollection<InputAction> Actions { get; }

Property Value

IReadOnlyCollection<InputAction>

Enabled

public bool Enabled { get; set; }

Property Value

bool

Methods

BindAxis(string, Key, Key)

public InputAction BindAxis(string name, Key negative, Key positive)

Parameters

name string
negative Key
positive Key

Returns

InputAction

BindButton(string, Key, params Key[])

public InputAction BindButton(string name, Key key, params Key[] alternatives)

Parameters

name string
key Key
alternatives Key[]

Returns

InputAction

BindButton(string, MouseButton, params MouseButton[])

public InputAction BindButton(string name, MouseButton button, params MouseButton[] alternatives)

Parameters

name string
button MouseButton
alternatives MouseButton[]

Returns

InputAction

BindVector2(string, Key, Key, Key, Key)

public InputAction BindVector2(string name, Key left, Key right, Key up, Key down)

Parameters

name string
left Key
right Key
up Key
down Key

Returns

InputAction

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Get(string)

public InputAction Get(string name)

Parameters

name string

Returns

InputAction

Remove(string)

public bool Remove(string name)

Parameters

name string

Returns

bool

TryGet(string, out InputAction?)

public bool TryGet(string name, out InputAction? action)

Parameters

name string
action InputAction

Returns

bool