Skip to content

Commit

Permalink
fix sonarqube issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cranberry3148 committed Nov 27, 2023
1 parent a91576e commit 90cf8ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NadezdaUI/Gui/Framework/Controls/Button.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public override void Update()
/// </returns>
private bool IsHovering() {
Vector2 mousePos = Mouselib.GetMousePosition();
if(!(mousePos.X >= Rectangle.x) || !(mousePos.X <= (Rectangle.x + Rectangle.width))) return false;
if((mousePos.X < Rectangle.x) || (mousePos.X > (Rectangle.x + Rectangle.width))) return false;
return mousePos.Y >= Rectangle.y && mousePos.Y <= Rectangle.y + Rectangle.height;

}
Expand Down
2 changes: 1 addition & 1 deletion NadezdaUI/Gui/Framework/Lib/Keyboardlib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace NadezdaUI.Gui.Framework.Lib;
/// <summary>
/// Keyboardlib class provides convenient access to keyboard related functionality.
/// </summary>
public class Keyboardlib {
public static class Keyboardlib {
/// <summary>
/// Checks if a specific keyboard key is currently being pressed down.
/// </summary>
Expand Down

0 comments on commit 90cf8ff

Please sign in to comment.