Safe Haskell | None |
---|
Game.LambdaHack.Common.Key
Description
Frontend-independent keyboard input operations.
Documentation
Frontend-independent datatype to represent keys.
handleDir :: X -> KM -> (Vector -> a) -> a -> aSource
Configurable event handler for the direction keys. Used for directed commands such as close door.
dirAllMoveKey :: [Key]Source
moveBinding :: (VectorXY -> a) -> (VectorXY -> a) -> [(KM, a)]Source
Binding of both sets of movement keys.
keyTranslate :: String -> KeySource
Translate key from a GTK string description to our internal key type. To be used, in particular, for the command bindings and macros in the config file.
Our own encoding of modifiers. Incomplete.
Constructors
NoModifier | |
Control |