internal ActionVoid GetAction(MouseButton button, ButtonState3 state) { ActionVoid value; buttonActionMap[state].TryGetValue(button, out value); return(value); }
internal ActionVoid GetAction(Keys key, ButtonState3 state) { ActionVoid value; keyMap[state].TryGetValue(key, out value); return(value); }
private void ExecuteAction(Keys key, ButtonState3 state) { ActionVoid action = _bindingMap.GetAction(key, state); if (action != null) { action.Execute(); } }
private void ExecuteAction(MouseButton button, ButtonState3 state) { ActionVoid action = _bindingMap.GetAction(button, state); if (action != null) { action.Execute(); } }
protected void BindButton(MouseButton button, ButtonState3 state, ActionVoid action) { buttonActionMap[state].Add(button, action); }
protected void Bind(Keys key, ButtonState3 state, ActionVoid action) { keyMap[state].Add(key, action); }