LambdaHack-0.9.5.0: 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

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

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

When the intro screen mentions KP_5, this really is KP_Begin, but since that is harder to understand we assume a different, non-default state of NumLock in the help text than in the code that handles keys.

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

Turn the specified portion of bindings into a menu.