You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/src/processing/event/MouseEvent.java
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ public class MouseEvent extends Event {
36
36
37
37
protectedintx, y;
38
38
protectedintbutton;
39
-
protectedintclickCount;
39
+
protectedintcount;
40
40
41
41
42
42
// public MouseEvent(int x, int y) {
@@ -48,13 +48,13 @@ public class MouseEvent extends Event {
48
48
49
49
publicMouseEvent(ObjectnativeObject,
50
50
longmillis, intaction, intmodifiers,
51
-
intx, inty, intbutton, intclickCount) {
51
+
intx, inty, intbutton, intcount) {
52
52
super(nativeObject, millis, action, modifiers);
53
53
this.flavor = MOUSE;
54
54
this.x = x;
55
55
this.y = y;
56
56
this.button = button;
57
-
this.clickCount = clickCount;
57
+
this.count = count;
58
58
}
59
59
60
60
@@ -79,8 +79,23 @@ public int getButton() {
79
79
// }
80
80
81
81
82
+
@Deprecated
82
83
publicintgetClickCount() {
83
-
returnclickCount;
84
+
returncount;
85
+
}
86
+
87
+
88
+
/**
89
+
* Number of clicks for mouse button events, or the number of steps (positive
90
+
* or negative depending on direction) for a mouse wheel event.
91
+
* Wheel events follow Java (see <a href="http://docs.oracle.com/javase/6/docs/api/java/awt/event/MouseWheelEvent.html#getWheelRotation()">here</a>), so
92
+
* getAmount() will return "negative values if the mouse wheel was rotated
93
+
* up or away from the user" and positive values in the other direction.
94
+
* On Mac OS X, this will be reversed when "natural" scrolling is enabled
0 commit comments