//private Tile selectedTile = null;
 //initialize everything here, Game is loaded at this point
 public ControllerSupport()
 {
     Console.WriteLine("Loaded mod ControllerSupport");
     controllerBindings = new ControllerKeyBindings ();
     configManager = new ConfigManager (this.OwnFolder (), controllerBindings);
     controllerBindings.SetUsePS3 (configManager.UsingPS3 ());
     popups = new PopupsWrapper (App.Popups);
 }
        public ConfigManager(string modFolder, ControllerKeyBindings controllerBindings)
        {
            this.modFolder = modFolder;
            this.controllerBindings = controllerBindings;
            configPath = modFolder + Path.DirectorySeparatorChar + "config";

            // Create a config folder.
            if (!Directory.Exists (configPath + Path.DirectorySeparatorChar)) {
                Directory.CreateDirectory(configPath + Path.DirectorySeparatorChar);
            }
            // Load the config.json file.
            LoadConfig ();
        }