public Input() { Key = new Dictionary<Keyboard.Key, KeyEvent>(); MouseButton = new Dictionary<Mouse.Button, MouseButtonEvent>(); Text = null; MouseWheel = null; MouseMove = null; }
/// <summary> /// Construct the mouse wheel arguments from a mouse wheel event /// </summary> /// <param name="e">Mouse wheel event</param> //////////////////////////////////////////////////////////// public MouseWheelEventArgs(MouseWheelEvent e) { Delta = e.Delta; X = e.X; Y = e.Y; }
//////////////////////////////////////////////////////////// /// <summary> /// Construct the mouse wheel arguments from a mouse wheel event /// </summary> /// <param name="e">Mouse wheel event</param> //////////////////////////////////////////////////////////// public MouseWheelEventArgs(MouseWheelEvent e) { Delta = e.Delta; X = e.X; Y = e.Y; }
//////////////////////////////////////////////////////////// /// <summary> /// Construct the mouse wheel arguments from a mouse wheel event /// </summary> /// <param name="e">Mouse wheel event</param> //////////////////////////////////////////////////////////// public MouseWheelEventArgs(MouseWheelEvent e) { Delta = e.Delta; }