Exemple #1
0
        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;
        }
Exemple #2
0
 protected Func<MouseState, MouseState, GameTime, bool> DetectMouseClicked(MouseButtons key)
 {
     return key.DetectClick;
 }
Exemple #3
0
 public virtual void Register(MouseButtons mouseButton, Action<MouseState, GameTime> action)
 {
     _mouseInput[mouseButton] = action;
 }