Skip to content

Commit

Permalink
fix(debug): switch mouse info to mouse debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgivrer committed Aug 8, 2024
1 parent d3334e9 commit ca9ccbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/snapgames/apps/desktop/game/GameApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,7 @@ public boolean isKeyPressed(int keyCode) {
public void mouseClicked(MouseEvent e) {
if (getEntityUnderMouse(mouseX, mouseY).isPresent()) {
Entity entityClicked = getEntityUnderMouse(mouseX, mouseY).get();
info("Entity %s has been clicked", entityClicked.name);
debug("Entity %s has been clicked", entityClicked.name);
entityClicked.behaviors
.forEach(b -> b.onMouseClick(this, entityClicked, mouseX, mouseY, e.getButton()));
}
Expand All @@ -2284,7 +2284,7 @@ private Optional<Entity> getEntityUnderMouse(double mouseX, double mouseY) {
public void mousePressed(MouseEvent e) {
if (getEntityUnderMouse(mouseX, mouseY).isPresent()) {
Entity entityClicked = getEntityUnderMouse(mouseX, mouseY).get();
info("Entity %s has been clicked", entityClicked.name);
debug("Entity %s has been pressed", entityClicked.name);
entityClicked.behaviors
.forEach(b -> b.onMousePressed(this, entityClicked, mouseX, mouseY, e.getButton()));
}
Expand All @@ -2294,7 +2294,7 @@ public void mousePressed(MouseEvent e) {
public void mouseReleased(MouseEvent e) {
if (getEntityUnderMouse(mouseX, mouseY).isPresent()) {
Entity entityClicked = getEntityUnderMouse(mouseX, mouseY).get();
info("Entity %s has been clicked", entityClicked.name);
debug("Entity %s has been released", entityClicked.name);
entityClicked.behaviors
.forEach(b -> b.onMouseReleased(this, entityClicked, mouseX, mouseY, e.getButton()));
}
Expand Down

0 comments on commit ca9ccbd

Please sign in to comment.