LambdaHack-0.7.0.0: A game engine library for 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.

Apparently some SDL backends are not thread-safe (https:/wiki.libsdl.orgFAQDevelopment), so we stick to main thread.

frontendName :: String Source #

The name of the frontend.

Internal operations

display Source #

Arguments

:: ClientOptions 
-> FrontendSession

frontend session data

-> SingleFrame

the screen frame to draw

-> IO () 

Add a frame to be drawn.

displayNoLock 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.