public override void KeyUp(KeyboardObserver ko, Keys key) { /*switch (key) * { * case Keys.Up: * _menuIndex -= 1; * if (_menuIndex < 0) * _menuIndex = _child.Count - 1; * Mouse.SetPosition((int)(_child[_menuIndex].X + _child[_menuIndex].Width / 2), (int)(_child[_menuIndex].Y + _child[_menuIndex].Height / 2)); * break; * case Keys.Down: * _menuIndex += 1; * if (_menuIndex > _child.Count - 1) * _menuIndex = 0; * Mouse.SetPosition((int)(_child[_menuIndex].X + _child[_menuIndex].Width / 2), (int)(_child[_menuIndex].Y + _child[_menuIndex].Height / 2)); * break; * case Keys.Enter: * _child[_menuIndex].MouseClick(null); * break; * }*/ }
public override void KeyUp(KeyboardObserver ko, Keys key) { /*switch (key) { case Keys.Up: _menuIndex -= 1; if (_menuIndex < 0) _menuIndex = _child.Count - 1; Mouse.SetPosition((int)(_child[_menuIndex].X + _child[_menuIndex].Width / 2), (int)(_child[_menuIndex].Y + _child[_menuIndex].Height / 2)); break; case Keys.Down: _menuIndex += 1; if (_menuIndex > _child.Count - 1) _menuIndex = 0; Mouse.SetPosition((int)(_child[_menuIndex].X + _child[_menuIndex].Width / 2), (int)(_child[_menuIndex].Y + _child[_menuIndex].Height / 2)); break; case Keys.Enter: _child[_menuIndex].MouseClick(null); break; }*/ }
public virtual void KeyUp(KeyboardObserver ko, Keys key) { }