public virtual Action<MouseState, GameTime> Unregister(MouseButtons mouseButton) { if (mouseButton == null) // do nothing return null; Action<MouseState, GameTime> action = _mouseInput[mouseButton]; _mouseInput.Remove(mouseButton); return action; }
protected Func<MouseState, MouseState, GameTime, bool> DetectMouseClicked(MouseButtons key) { return key.DetectClick; }
public virtual void Register(MouseButtons mouseButton, Action<MouseState, GameTime> action) { _mouseInput[mouseButton] = action; }