ft2_events.h (456B)
1 #pragma once 2 3 #include <SDL2/SDL.h> 4 #include <stdint.h> 5 #include <stdbool.h> 6 7 enum 8 { 9 EVENT_NONE = 0, 10 EVENT_LOADMUSIC_ARGV = 1, 11 EVENT_LOADMUSIC_DRAGNDROP = 2, 12 EVENT_LOADMUSIC_DISKOP = 3, 13 }; 14 15 void handleThreadEvents(void); 16 void readInput(void); 17 void handleEvents(void); 18 void setupCrashHandler(void); 19 void handleWaitVblQuirk(SDL_Event *event); 20 #ifdef _WIN32 21 bool handleSingleInstancing(int32_t argc, char **argv); 22 void closeSingleInstancing(void); 23 #endif