public void AddKeyBinding(string bindingName, Keys key, params Modifier[] modifiers) { InputBinding inputBinding = new InputBinding(); inputBinding.SetBinding(key, modifiers); AddKeyBinding(bindingName, inputBinding); }
/// <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); }
public void AddKeyBinding(string bindingName, Buttons button, params Modifier[] modifiers) { InputBinding inputBinding = new InputBinding(); inputBinding.SetBinding(button, modifiers); AddKeyBinding(bindingName, inputBinding); }
public void AddKeyBinding(string bindingName, Trigger trigger, params Modifier[] modifiers) { InputBinding inputBinding = new InputBinding(); inputBinding.SetBinding(trigger, modifiers); AddKeyBinding(bindingName, inputBinding); }
public void AddKeyBinding(string bindingName, Thumbstick thumbstick, params Modifier[] modifiers) { InputBinding inputBinding = new InputBinding(); inputBinding.SetBinding(thumbstick, modifiers); AddKeyBinding(bindingName, inputBinding); }
public void AddKeyBinding(string bindingName, InputBinding inputBinding) { // Make sure there isn't already a biding with that name RemoveKeyBinding(bindingName); keybindings.Add(bindingName, inputBinding); }
public EditorInput(Editor editor) : base(editor as MirrorEngine) { theEngine = editor as Editor; editBindings = new InputBinding[Enum.GetValues(typeof(EditBindings)).Length]; }