shithub: ft²

ref: 62bbc39e91d7f624ecf806d8b1b462c28ba206d5
dir: /src/ft2_events.h/

View raw version
#ifndef _ft2_events_h_
#define _ft2_events_h_

#include <SDL2/SDL.h>
#include <stdint.h>
#include <stdbool.h>

enum
{
	EVENT_NONE = 0,
	EVENT_LOADMUSIC_ARGV = 1,
	EVENT_LOADMUSIC_DRAGNDROP = 2,
	EVENT_LOADMUSIC_DISKOP = 3,
};

void handleThreadEvents(void);
void readInput(void);
void handleEvents(void);
void setupCrashHandler(void);
void handleWaitVblQuirk(SDL_Event *event);
#ifdef _WIN32
bool handleSingleInstancing(int32_t argc, char **argv);
void closeSingleInstancing(void);
#endif

#endif