diff --git a/src/game/Clock.java b/src/game/Clock.java index 9a29211..38557b4 100644 --- a/src/game/Clock.java +++ b/src/game/Clock.java @@ -31,6 +31,8 @@ public class Clock extends Thread{ } + + public boolean isRunning() { return running; } diff --git a/src/gui/GUI.java b/src/gui/GUI.java index 7a344c3..3826e2b 100644 --- a/src/gui/GUI.java +++ b/src/gui/GUI.java @@ -375,6 +375,19 @@ public class GUI { draw.setVisible(true); + jfGame.addMouseMotionListener(new MouseMotionListener() { + @Override + public void mouseDragged(MouseEvent e) { + int x=e.getX(); + int y=e.getY(); + System.out.println(x+","+y); + } + + @Override + public void mouseMoved(MouseEvent e) { + System.out.println("Not Pressed"); + } + }); jfGame.add(draw);