src/platform/sdl/sdl-events.h (view raw)
1#ifndef SDL_EVENTS_H
2#define SDL_EVENTS_H
3
4#include "gba-thread.h"
5
6#include <SDL.h>
7
8struct GBASDLEvents {
9 SDL_Joystick* joystick;
10};
11
12int GBASDLInitEvents(struct GBASDLEvents*);
13void GBASDLDeinitEvents(struct GBASDLEvents*);
14
15void GBASDLHandleEvent(struct GBAThread* context, const union SDL_Event* event);
16
17enum GBAKey GBASDLMapButtonToKey(int button);
18
19#endif