Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- consumeSDLKeyboardEvents :: forall ak us. (Participant ak us, Mesg ak us ~ KeyboardMessage) => ak -> [EventPayload] -> Affection us [EventPayload]
Documentation
consumeSDLKeyboardEvents Source #
:: (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 EventPayload
s
and emits appropriate KeyboardMessage
s