Remove global variables.

Global variables are overall bad practice.
This commit is contained in:
2018-03-25 17:14:44 +02:00
parent 0faa83c162
commit 80113d51ff
6 changed files with 21 additions and 15 deletions

View File

@@ -18,6 +18,8 @@
#pragma once
#include <allegro5/allegro.h>
enum {
KEY_UP = 0x0,
KEY_DOWN = 0x1,
@@ -33,7 +35,7 @@ enum {
*
* @return 0 upon failure, 1 upon success.
*/
int evnt_mngr_init();
int evnt_mngr_init(ALLEGRO_DISPLAY *display);
/**
* @brief Deinitialize the event handler.