/// <summary> /// Method to create the default Input Set in case there is no CFG file loaded /// </summary> public InputSet createDefaultInputSet() { Dictionary<BSKeyCode, List<string>> keyBindings = new Dictionary<BSKeyCode, List<string>>(); List<string> orders = new List<string>(); orders.Add("START_GAME"); keyBindings.Add(BSKeyCode.Return, orders); orders = new List<string>(); orders.Add("EXIT"); keyBindings.Add(BSKeyCode.Escape, orders); orders = new List<string>(); orders.Add("ANGRY_GOAT_CLICK"); keyBindings.Add(BSKeyCode.Mouse0, orders); MouseCfg cfg = new MouseCfg(false, false, 10.0f, true); return new InputSet("MenuStateInputSet", keyBindings, cfg); }
/// <summary> /// Method to create the default Input Set in case there is no CFG file loaded /// </summary> private InputSet createDefaultInputSet() { Dictionary<BSKeyCode, List<string>> keyBindings = new Dictionary<BSKeyCode, List<string>>(); List<string> orders = new List<string>(); orders.Add("MOVE_UP"); keyBindings.Add(BSKeyCode.UpArrow, orders); orders = new List<string>(); orders.Add("MOVE_DOWN"); keyBindings.Add(BSKeyCode.DownArrow, orders); orders = new List<string>(); orders.Add("MOVE_LEFT"); keyBindings.Add(BSKeyCode.LeftArrow, orders); orders = new List<string>(); orders.Add("MOVE_RIGHT"); keyBindings.Add(BSKeyCode.RightArrow, orders); orders = new List<string>(); orders.Add("PAUSE"); keyBindings.Add(BSKeyCode.Pause, orders); keyBindings.Add(BSKeyCode.P, orders); orders = new List<string>(); orders.Add("EXIT_GAME"); keyBindings.Add(BSKeyCode.Escape, orders); //TO DO MouseCfg config MouseCfg cfg = new MouseCfg(false, false, 10.0f); return new InputSet("GameStateInputSet", keyBindings, cfg); }
/// <summary> /// Method to create the default Input Set in case there is no CFG file loaded /// </summary> private InputSet createDefaultInputSet() { Dictionary<BSKeyCode, List<string>> keyBindings = new Dictionary<BSKeyCode, List<string>>(); List<string> orders = new List<string>(); orders.Add("EXIT_GAME"); keyBindings.Add(BSKeyCode.Escape, orders); orders = new List<string>(); orders.Add("NEXT_MOVEMENT"); keyBindings.Add(BSKeyCode.UpArrow, orders); orders = new List<string>(); orders.Add("TESTKEY1"); keyBindings.Add(BSKeyCode.DownArrow, orders); orders = new List<string>(); orders.Add("CLICK"); keyBindings.Add(BSKeyCode.Mouse0, orders); //TO DO MouseCfg config MouseCfg cfg = new MouseCfg(false, false, 10.0f, true); return new InputSet("GameStateInputSet", keyBindings, cfg); }