Safe Haskell | None |
---|
Game.LambdaHack.Key
Description
Frontend-independent keyboard input operations.
Documentation
Frontend-independent datatype to represent keys.
handleDir :: X -> Key -> (Vector -> a) -> a -> aSource
Configurable event handler for the direction keys. Used for directed commands such as close door.
moveBinding :: ((X -> Vector) -> a) -> ((X -> Vector) -> a) -> [(Key, (String, 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.