| ␉␉␉ */␊ |
| ␉␉␉SDL.SDL_SetMainReady();␊ |
| ␊ |
| ␉␉␉// If available, load the SDL_GameControllerDB␊ |
| ␉␉␉string mappingsDB = Path.Combine(␊ |
| ␉␉␉␉TitleContainer.Location,␊ |
| ␉␉␉␉"gamecontrollerdb.txt"␊ |
| ␉␉␉);␊ |
| ␉␉␉if (File.Exists(mappingsDB))␊ |
| ␉␉␉{␊ |
| ␉␉␉␉SDL.SDL_GameControllerAddMappingsFromFile(␊ |
| ␉␉␉␉␉mappingsDB␊ |
| ␉␉␉␉);␊ |
| ␉␉␉}␊ |
| ␊ |
| ␉␉␉// This _should_ be the first real SDL call we make...␊ |
| ␉␉␉SDL.SDL_Init(␊ |
| ␉␉␉␉SDL.SDL_INIT_VIDEO |␊ |
|
| ␉␉␉␉␉"1"␊ |
| ␉␉␉␉);␊ |
| ␉␉␉}␊ |
| ␊ |
| ␉␉␉// If available, load the SDL_GameControllerDB␊ |
| ␉␉␉string mappingsDB = Path.Combine(␊ |
| ␉␉␉␉TitleContainer.Location,␊ |
| ␉␉␉␉"gamecontrollerdb.txt"␊ |
| ␉␉␉);␊ |
| ␉␉␉if (File.Exists(mappingsDB))␊ |
| ␉␉␉{␊ |
| ␉␉␉␉SDL.SDL_GameControllerAddMappingsFromFile(␊ |
| ␉␉␉␉␉mappingsDB␊ |
| ␉␉␉␉);␊ |
| ␉␉␉}␊ |
| ␉␉}␊ |
| ␊ |
| ␉␉public static void ProgramExit(object sender, EventArgs e)␊ |