LambdaHack-0.8.3.0: A game engine library for tactical squad ASCII roguelike dungeon crawlers

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Client.UI.Frontend.Sdl

Contents

Description

Text frontend based on SDL2.

Synopsis

Documentation

startup :: ClientOptions -> IO RawFrontend Source #

Set up and start the main loop providing input and output.

Because of Windows and OS X, SDL2 needs to be on a bound thread, so we can't avoid the communication overhead of bound threads.

frontendName :: String Source #

The name of the frontend.

Internal operations

display Source #

Arguments

:: FrontendSession

frontend session data

-> SingleFrame

the screen frame to draw

-> IO () 

Add a frame to be drawn.

drawFrame Source #

Arguments

:: ClientOptions 
-> FrontendSession

frontend session data

-> SingleFrame

the screen frame to draw

-> IO () 

modTranslate :: KeyModifier -> Modifier Source #

Translates modifiers to our own encoding, ignoring Shift.