mirror of
https://github.com/processing/processing4.git
synced 2026-03-04 19:54:39 +01:00
Replaced getWheelRotation() with getRotation()
This commit is contained in:
@@ -2699,10 +2699,13 @@ public class PGL {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
int peCount = peAction == MouseEvent.WHEEL ?
|
||||
(int) nativeEvent.getWheelRotation() :
|
||||
nativeEvent.getClickCount();
|
||||
int peCount = 0;
|
||||
if (peAction == MouseEvent.WHEEL) {
|
||||
peCount = nativeEvent.isShiftDown() ? (int)nativeEvent.getRotation()[0] :
|
||||
(int)nativeEvent.getRotation()[1];
|
||||
} else {
|
||||
peCount = nativeEvent.getClickCount();
|
||||
}
|
||||
|
||||
MouseEvent me = new MouseEvent(nativeEvent, nativeEvent.getWhen(),
|
||||
peAction, peModifiers,
|
||||
|
||||
Reference in New Issue
Block a user