private void OnMouseChanged(object sender, EventArgsMouseStateChanged e) { MouseStateMonitor.UpdateMouseState(); if (MouseStateMonitor.ScrollChanged() && this.isWithinBounds(MouseStateMonitor.CurrentMouseState.X, MouseStateMonitor.CurrentMouseState.Y) && this.emoteMenu.IsOpen) { MouseState mouseState = Game1.oldMouseState; Game1.oldMouseState = new MouseState(mouseState.X, mouseState.Y, MouseStateMonitor.CurrentMouseState.ScrollWheelValue, mouseState.LeftButton, mouseState.MiddleButton, mouseState.RightButton, mouseState.XButton1, mouseState.XButton2); receiveScrollWheelAction(MouseStateMonitor.ScrollValueDifference()); } }
private bool ShouldDragIcon() { return(MouseStateMonitor.MouseHolded() && !MouseStateMonitor.MouseReleased() && this.emoteMenuIcon.containsPoint(Game1.getMouseX(), Game1.getMouseY())); }