Header menu logo Mibo

InputMapper Module

Functions and values

Function or value Description

subscribe getMap toMsg ctx

Full Usage: subscribe getMap toMsg ctx

Parameters:
Returns: Sub<'Msg>

Elmish subscription that builds an ActionState from the registered IInput observables and the supplied map. Backend-neutral apart from the "is key down" poller, which calls raylib.

getMap : unit -> InputMap<'Action>
toMsg : ActionState<'Action> -> 'Msg
ctx : GameContext
Returns: Sub<'Msg>

subscribeStatic map toMsg ctx

Full Usage: subscribeStatic map toMsg ctx

Parameters:
Returns: Sub<'Msg>

Elmish subscription variant for a fixed (non-changing) InputMap.

map : InputMap<'Action>
toMsg : ActionState<'Action> -> 'Msg
ctx : GameContext
Returns: Sub<'Msg>

Type something to start searching.