LambdaHack-0.2.14: A roguelike game engine in early development

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.KeyBindings

Description

Binding of keys to commands. No operation in this module involves the State or Action type.

Synopsis

Documentation

data Binding Source

Bindings and other information about human player commands.

Constructors

Binding 

Fields

bcmdMap :: !(Map KM (Text, [CmdCategory], HumanCmd))

binding of keys to commands

bcmdList :: ![(KM, (Text, [CmdCategory], HumanCmd))]

the properly ordered list of commands for the help menu

brevMap :: !(Map HumanCmd KM)

and from commands to their keys

stdBinding Source

Arguments

:: KeyKind

default key bindings from the content

-> Config

game config

-> Binding

concrete binding

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

keyHelp :: Binding -> Slideshow Source

Produce a set of help screens from the key bindings.