LambdaHack-0.8.1.2: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.KeyBindings

Description

Verifying, aggregating and displaying binding of keys to commands.

Synopsis

Documentation

data Binding Source #

Bindings and other information about human player commands.

Constructors

Binding 

Fields

stdBinding Source #

Arguments

:: KeyKind

default key bindings from the content

-> UIOptions

UI client options

-> Binding

concrete binding

Create binding of keys to movement and other standard commands, as well as commands defined in the config file.

keyHelp :: COps -> Binding -> Int -> [(Text, OKX)] Source #

Produce a set of help/menu screens from the key bindings.

okxsN :: Binding -> Int -> Int -> (HumanCmd -> Bool) -> Bool -> CmdCategory -> [Text] -> [Text] -> OKX Source #

Turn the specified portion of bindings into a menu.