# eventhandler.c File Reference

`#include <allegro5/allegro5.h>`
`#include <allegro5/allegro_font.h>`
`#include "chipmunk.h"`
`#include <stdio.h>`
`#include "../include/commons.h"`
`#include "../include/buttons.h"`
`#include "../include/sprites.h"`

Go to the source code of this file.

## Defines
#define | _KEYBOARD_
#define | _MOUSE_
#define | _BUTTONS_
#define | _SPRITES_
#define | _MAINGAME_
#define | _OPTIONS_
#define | _HOWTOPLAY_
#define | _HIGHSCORES_
#define | _PAUSE_
#define | _GAMEOVER_
#define | _RENDER_
#define | _INITS_
#define | _EVENTHANDLER_
## Functions
void * | keyhandler (String key, void *data)
| Checks for keyboard input.
void * | mousehandler (MOUSE *mouse_s, void *data)
void * | buttonhandler (BUTTONPTR button, void *data, int type)
void | execute_on_button_press (void)
void | execute_on_M_press (void)
void | return_to_main_menu (GDATAPTR game)

## Detailed Description

Handles all keyboard, mouse and button events

Definition in file eventhandler.c.