Header menu logo Mibo

InputMap Module

Functions for building InputMap configurations.

Functions and values

Function or value Description

bind action trigger map

Full Usage: bind action trigger map

Parameters:
Returns: InputMap<'Action>

Binds a trigger to an action. Multiple triggers can map to the same action.

action : 'Action
trigger : Trigger
map : InputMap<'Action>
Returns: InputMap<'Action>

empty

Full Usage: empty

Returns: InputMap<'a>

An empty input map with no bindings.

Returns: InputMap<'a>

gamepadButton action player btn map

Full Usage: gamepadButton action player btn map

Parameters:
Returns: InputMap<'Action>

Binds a gamepad button for a specific player to an action.

action : 'Action
player : PlayerIndex
btn : Buttons
map : InputMap<'Action>
Returns: InputMap<'Action>

key action k map

Full Usage: key action k map

Parameters:
Returns: InputMap<'Action>

Binds a keyboard key to an action.

action : 'Action
k : Keys
map : InputMap<'Action>
Returns: InputMap<'Action>

mouse action btn map

Full Usage: mouse action btn map

Parameters:
    action : 'Action
    btn : int
    map : InputMap<'Action>

Returns: InputMap<'Action>

Binds a mouse button to an action (0=Left, 1=Right, 2=Middle).

action : 'Action
btn : int
map : InputMap<'Action>
Returns: InputMap<'Action>

Type something to start searching.