Gamepad Module
Gamepad input subscriptions for Elmish.
Functions and values
| Function or value |
Description
|
Full Usage:
listen handler ctx
Parameters:
GamepadDelta -> 'Msg
ctx : GameContext
Returns: Sub<'Msg>
|
Listen to all gamepad input changes (buttons and analog).
|
Full Usage:
listenPlayer player handler ctx
Parameters:
PlayerIndex
handler : GamepadDelta -> 'Msg
ctx : GameContext
Returns: Sub<'Msg>
|
Listen to gamepad input for a specific player.
|
Full Usage:
onConnected handler ctx
Parameters:
PlayerIndex -> 'Msg
ctx : GameContext
Returns: Sub<'Msg>
|
|
Full Usage:
onConnectionChange handler ctx
Parameters:
GamepadConnection -> 'Msg
ctx : GameContext
Returns: Sub<'Msg>
|
Listen to all connection/disconnection events.
|
Full Usage:
onDisconnected handler ctx
Parameters:
PlayerIndex -> 'Msg
ctx : GameContext
Returns: Sub<'Msg>
|
Called when a gamepad disconnects.
|
Mibo