affection-0.0.0.9: A simple Game Engine using SDL

Safe HaskellNone
LanguageHaskell2010

Affection.Subsystems.AffectionMouse

Synopsis

Documentation

consumeSDLMouseEvents Source #

Arguments

:: (Participant am us, Mesg am us ~ MouseMessage) 
=> am

The message system participant

-> [EventPayload]

Incoming events

-> Affection us [EventPayload]

Leftover SDL events

Helper funtion that consumes all Mouse-related Eventpayloads and emits appropriate MouseMessages