The EventManager is responsible for sending events to controllers, so they can trigger actions at specific times.
EventManager
For instance, when you press a key, or the game ticks, it is an event.
The EventManager will contact all the controllers so they can take the appropriate action.
Registers a listener that will be updated
UnRegisters a listerner
All listeners attached to this EventManager
The current evnets in queue
Send update signal to all Controllers
To install SDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL
CPAN shell
perl -MCPAN -e shell install SDL
For more information on module installation, please visit the detailed CPAN module installation guide.