affection-0.0.0.7: A simple Game Engine using SDL

Safe HaskellNone
LanguageHaskell2010

Affection.Util

Synopsis

Documentation

preHandleEvents :: [Event] -> Affection us [EventPayload] Source #

getAffection :: Affection us us Source #

Return the userstate to the user

putAffection :: us -> Affection us () Source #

Put altered user state back

delaySec Source #

Arguments

:: Int

Number of seconds

-> IO () 

block a thread for a specified amount of time

getElapsedTime :: Affection us Double Source #

Get time since start but always the same in the current tick.

getDelta :: Affection us Double Source #

toggleScreen :: Affection us () Source #

Toggle the Screen mode between Windowed and FullscreenDesktop. Pauses the Engine in the process.