Fixed in room navigation.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / humaninput / MouseClick.java
1 /*
2  * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
3  *
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.
7  *
8  */
9
10 package eu.svjatoslav.sixth.e3d.gui.humaninput;
11
12 import eu.svjatoslav.sixth.e3d.geometry.Point2D;
13
14 public class MouseClick {
15
16     public Point2D coordinate;
17
18     /**
19      * Indicates pressed mouse button. Except 0 that simply means mouse over
20      * given region.
21      */
22     public int button;
23
24     public MouseClick(final int x, final int y, final int button) {
25         this(new Point2D(x, y), button);
26     }
27
28     public MouseClick(final Point2D coordinate, final int button) {
29         this.coordinate = coordinate;
30         this.button = button;
31     }
32
33 }