示例#1
0
 public void AddKeyBinding(string bindingName, Keys key, params Modifier[] modifiers)
 {
     InputBinding inputBinding = new InputBinding();
     inputBinding.SetBinding(key, modifiers);
     AddKeyBinding(bindingName, inputBinding);
 }
示例#2
0
 /// <summary>
 /// Update the binding associated with the specified key,
 /// overwriting that binding with the newBinding
 /// </summary>
 /// <param name="key">The name of the keybinding to update</param>
 /// <param name="newBinding">The new information to associate with the key</param>
 public void UpdateKeyBinding(string key, InputBinding newBinding)
 {
     RemoveKeyBinding(key);
     AddKeyBinding(key, newBinding);
 }
示例#3
0
 public void AddKeyBinding(string bindingName, Buttons button, params Modifier[] modifiers)
 {
     InputBinding inputBinding = new InputBinding();
     inputBinding.SetBinding(button, modifiers);
     AddKeyBinding(bindingName, inputBinding);
 }
示例#4
0
 public void AddKeyBinding(string bindingName, Trigger trigger, params Modifier[] modifiers)
 {
     InputBinding inputBinding = new InputBinding();
     inputBinding.SetBinding(trigger, modifiers);
     AddKeyBinding(bindingName, inputBinding);
 }
示例#5
0
 public void AddKeyBinding(string bindingName, Thumbstick thumbstick, params Modifier[] modifiers)
 {
     InputBinding inputBinding = new InputBinding();
     inputBinding.SetBinding(thumbstick, modifiers);
     AddKeyBinding(bindingName, inputBinding);
 }
示例#6
0
 public void AddKeyBinding(string bindingName, InputBinding inputBinding)
 {
     // Make sure there isn't already a biding with that name
     RemoveKeyBinding(bindingName);
     keybindings.Add(bindingName, inputBinding);
 }
示例#7
0
        public EditorInput(Editor editor) : base(editor as MirrorEngine)
        {
            theEngine = editor as Editor;

            editBindings = new InputBinding[Enum.GetValues(typeof(EditBindings)).Length];
        }