affection-0.0.0.9: A simple Game Engine using SDL

Safe HaskellNone
LanguageHaskell2010

Affection.Subsystems.AffectionKeyboard

Synopsis

Documentation

consumeSDLKeyboardEvents Source #

Arguments

:: (Participant ak us, Mesg ak us ~ KeyboardMessage) 
=> ak

The message system participant

-> [EventPayload]

Incoming events

-> Affection us [EventPayload]

Leftover SDL Events

Helper function that consumes all Keyboard-related EventPayloads and emits appropriate KeyboardMessages