addBinding

fun addBinding(type: InputSignal, keys: List<Key> = emptyList(), keyModifiers: List<InputMapController.KeyModifier> = emptyList(), buttons: List<GameButton> = emptyList(), axes: List<GameAxis> = emptyList(), pointers: List<Pointer> = emptyList())

Create a binding of multiple keys and buttons into a single InputSignal.

See also

Parameters

type

the InputSignal that is triggered by one of the keys or buttons

keys

a list of Key types that triggers the InputSignal

buttons

a list of GameButton types that triggers the InputSignal

axes

a list of GameAxis types that triggers the InputSignal