Class EventMouse.Scroll
java.lang.Object
org.rusherhack.core.event.type.Event
org.rusherhack.core.event.type.EventCancellable
org.rusherhack.client.api.events.client.input.EventMouse
org.rusherhack.client.api.events.client.input.EventMouse.Scroll
- All Implemented Interfaces:
org.rusherhack.core.event.stage.IStageable
- Enclosing class:
- EventMouse
This event is called when the scroll wheel is used
-
Nested Class Summary
Nested classes/interfaces inherited from class org.rusherhack.client.api.events.client.input.EventMouse
EventMouse.Key, EventMouse.Move, EventMouse.Scroll
-
Constructor Summary
-
Method Summary
Methods inherited from class org.rusherhack.client.api.events.client.input.EventMouse
getMouseX, getMouseY
Methods inherited from class org.rusherhack.core.event.type.EventCancellable
isCancelled, setCancelled
Methods inherited from class org.rusherhack.core.event.type.Event
getPreferredStage, getStage, setStage
-
Constructor Details
-
Scroll
public Scroll(double xOffset, double yOffset)
-
-
Method Details
-
getScrollDeltaX
public double getScrollDeltaX()- Returns:
- Horizontal scroll offset
-
getScrollDeltaY
public double getScrollDeltaY()- Returns:
- Vertical scroll offset
-