LambdaHack-0.2.6.5: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.Action.Frontend.Chosen

Contents

Description

Re-export the operations of the chosen raw frontend (determined at compile time with cabal flags).

Synopsis

Re-exported raw frontend

type FrontendSession = ()Source

No session data needs to be maintained by this frontend.

startup :: String -> (FrontendSession -> IO ()) -> IO ()Source

Starts the main program loop using the frontend input and output.

frontendName :: StringSource

The name of the frontend.

nextEvent :: FrontendSession -> Maybe Bool -> IO (Key, Modifier)Source

Input key via the frontend.

promptGetAnyKey :: FrontendSession -> SingleFrame -> IO (Key, Modifier)Source

Display a prompt, wait for any key.

displaySource

Arguments

:: FrontendSession

frontend session data

-> Bool 
-> Bool 
-> Maybe SingleFrame

the screen frame to draw

-> IO () 

Output to the screen via the frontend.