2 * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 3 of the GNU Lesser General Public License
6 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.sixth.e3d.gui.humaninput;
12 import eu.svjatoslav.sixth.e3d.geometry.Point2D;
14 public class MouseEvent {
16 public Point2D coordinate;
19 * Indicates pressed mouse button. Except 0 that simply means mouse over
24 MouseEvent(final int x, final int y, final int button) {
25 this(new Point2D(x, y), button);
28 MouseEvent(final Point2D coordinate, final int button) {
29 this.coordinate = coordinate;
34 public String toString() {
35 return "MouseEvent{" +
36 "coordinate=" + coordinate +
37 ", button=" + button +