Remove global variables.

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

View File

@ -29,7 +29,7 @@ static ALLEGRO_EVENT_QUEUE *event_queue;
static ALLEGRO_TIMER *timer;
static int keys[KEY_MAX];
int evnt_mngr_init() {
int evnt_mngr_init(ALLEGRO_DISPLAY *display) {
if(!al_install_keyboard())
return 0;
#ifdef DEBUG