private final Map<Integer, Long> pressedKeysToPressedTimeMap = new HashMap<>();
private final List<MouseEvent> detectedMouseEvents = new ArrayList<>();
private final List<KeyEvent> detectedKeyEvents = new ArrayList<>();
- private int wheelMovedDirection = 0;
private final Point2D mouseDraggedDirection = new Point2D();
- private Point2D oldMouseCoordinatesWhenDragging;
private final ViewPanel viewPanel;
+ private int wheelMovedDirection = 0;
+ private Point2D oldMouseCoordinatesWhenDragging;
private Point2D currentMouseLocation;
private boolean mouseMoved;
private boolean mouseWithinWindow = false;