all repos — mgba @ 3edb2da58dbb4a4f08be5657b40384d87a2f7018

mGBA Game Boy Advance Emulator

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
17#endif